@adyen/adyen-platform-experience-web
Version:

16 lines • 811 B
TypeScript
import type { SelectItem } from '../components/internal/FormFields/Select/types';
import type { IBalanceAccountBase } from '../types';
export declare const ALL_BALANCE_ACCOUNTS_SELECTION_ID: string;
declare const useBalanceAccountSelection: (balanceAccounts?: IBalanceAccountBase[], allowAllSelection?: boolean) => {
readonly activeBalanceAccount: {
defaultCurrencyCode: string;
description?: string | undefined;
id: string;
timeZone: string;
} | undefined;
readonly balanceAccountSelectionOptions: Readonly<SelectItem<string>[] | undefined>;
readonly onBalanceAccountSelection: ({ target }: any) => void;
readonly resetBalanceAccountSelection: () => void;
};
export default useBalanceAccountSelection;
//# sourceMappingURL=useBalanceAccountSelection.d.ts.map