import type { BankVerificationErrorResponse, CreateTrustedTransferInstrumentResponse } from '../../../../../../api/transferInstruments/transferInstruments.types';
export type AccountVerificationCallbackErrorObject<T extends string = string> = {
    error: T;
    message: string;
};
export declare const VerificationWidgetCallbackActions: {
    readonly HANDLE_EXCEPTION: "handle_exception";
    readonly VERIFICATION_SUCCESS: "verification_success";
    readonly RETRY_VERIFICATION: "retry_verification";
    readonly HANDLE_EVENT: "handle_event";
};
type SuccessPayload = {
    action: typeof VerificationWidgetCallbackActions.VERIFICATION_SUCCESS;
    result: CreateTrustedTransferInstrumentResponse;
};
type ExceptionPayload = {
    action: typeof VerificationWidgetCallbackActions.HANDLE_EXCEPTION;
    err: Error | AccountVerificationCallbackErrorObject | BankVerificationErrorResponse | undefined;
};
type EventPayload = {
    action: typeof VerificationWidgetCallbackActions.HANDLE_EVENT;
    event: {
        name: string;
        provider: string;
    };
};
type RetryPayload = {
    action: typeof VerificationWidgetCallbackActions.RETRY_VERIFICATION;
};
export type VerificationWidgetCallback = (payload: SuccessPayload | ExceptionPayload | RetryPayload | EventPayload) => void;
export {};
