interface Props { phoneNumber?: string; onChangePhoneNumber?: (phoneNumber: string) => void; /** * Callback function called after an SMS is successfully sent to a given number. Usually, you'll use this function to navigate to the next screen (confirming a code.) * * @param info Dictionary containing the phone number a text was sent to * @param info.phoneNumber The phone number a text was sent to. */ onSmsSuccessfullySent(info: { phoneNumber: string; }): void; onSmsError?(e: unknown): void; } declare type onChangePhoneNumber = (info: { phoneNumber: string; }) => void; export declare function usePhoneNumber(props: Props): { phoneNumber: string; onChangePhoneNumber: onChangePhoneNumber; submitPhone: () => Promise; valid: boolean; loading: boolean; error: string | null; }; export {};