import { IdleState, BusyState, TokensFromSignIn } from "./model.js"; export declare function authenticateWithPlaintextPassword({ username, password, smsMfaCode, newPassword, tokensCb, statusCb, clientMetadata, }: { /** * Username, or alias (e-mail, phone number) */ username: string; password: string; smsMfaCode?: () => Promise; newPassword?: () => Promise; tokensCb?: (tokens: TokensFromSignIn) => void | Promise; statusCb?: (status: BusyState | IdleState) => void; currentStatus?: BusyState | IdleState; clientMetadata?: Record; }): { signedIn: Promise; abort: () => void; };