import type { FavCRM } from "./client.js"; import type { AuthTokenResponse, LoginChannelResponse, OtpIdentifier, OtpSendResponse, RegisterInput } from "./types/auth.js"; export declare class AuthClient { private sdk; constructor(sdk: FavCRM); /** * Send a one-time login code. Pass a phone string for the legacy * phone+WhatsApp flow, or `{ email }` / `{ phone }` to choose explicitly. * The merchant's configured loginChannel must match — see `getLoginChannel()`. */ sendOtp(identifier: string | OtpIdentifier): Promise; /** * Verify the OTP and exchange for tokens. Identifier must match the one * used in `sendOtp`. */ verifyOtp(identifier: string | OtpIdentifier, otp: string): Promise; /** * Get the merchant's configured login channel. Call this on the login * screen to know whether to render a phone or email input. */ getLoginChannel(): Promise; register(data: RegisterInput): Promise; } //# sourceMappingURL=auth.d.ts.map