import { DynamicError } from '@dynamic-labs/utils'; export type ConfirmationPortalProps = { onResolve: (response: T) => void; onReject: (error: E | DynamicError) => void; defaultErrorMessage?: string; }; export declare const useConfirmationPortal: ({ onResolve, onReject, defaultErrorMessage, }: ConfirmationPortalProps) => { closeModal: () => void; handleOnModalUnmount: () => void; onError: (error: E, closePortal?: boolean) => void; onSuccess: (response: T, closePortal?: boolean) => void; show: boolean; };