semblance-dev/node_modules/@azure/msal-react/dist/utils/utilities.d.ts
2025-12-19 19:26:16 +00:00

17 lines
983 B
TypeScript
Executable file

/// <reference types="react" />
import { AccountIdentifiers } from "../types/AccountIdentifiers.js";
import { AccountInfo } from "@azure/msal-browser";
type FaaCFunction = <T>(args: T) => React.ReactNode;
export declare function getChildrenOrFunction<T>(children: React.ReactNode | FaaCFunction, args: T): React.ReactNode;
export type SetDifference<A, B> = A extends B ? never : A;
export type SetComplement<A, A1 extends A> = SetDifference<A, A1>;
export type Subtract<T extends T1, T1 extends object> = Pick<T, SetComplement<keyof T, keyof T1>>;
/**
* Helper function to determine whether 2 arrays are equal
* Used to avoid unnecessary state updates
* @param arrayA
* @param arrayB
*/
export declare function accountArraysAreEqual(arrayA: Array<AccountIdentifiers>, arrayB: Array<AccountIdentifiers>): boolean;
export declare function getAccountByIdentifiers(allAccounts: AccountInfo[], accountIdentifiers: AccountIdentifiers): AccountInfo | null;
export {};