declare type Props = { /** * Mandatory callback function, called when SMS has been successfully sent to end user. * * @param info dictionary returning a token * @param info.token string with a token you can use with your custom firebase auth */ onCodeVerified: (info: { token: string; }) => void; phoneNumber: string; }; export declare function useConfirmPhone({ phoneNumber, onCodeVerified: onVerified, }: Props): { code: string; onChangeCode: import("react").Dispatch>; loading: boolean; reset: () => void; error: "Error: custom/code-does-not-match" | null; resend: () => Promise<{ success: boolean; error: null; } | { success: boolean; error: string; }>; resending: boolean; }; export {};