import { RobinhoodCredentials, TokenData } from "./types.js";
interface WorkflowState {
    workflowId: string;
    machineId: string;
    deviceToken: string;
    challengeId: string;
    challengeType: string;
    username?: string;
    password?: string;
}
export type RobinhoodInternalAuthResponse = RobinhoodInternalAuthResponseSuccess | RobinhoodInternalAuthResponseError;
export interface RobinhoodInternalAuthResponseSuccess {
    status?: string;
    tokenData: TokenData;
    workflow_id?: string;
    message?: string;
    authType?: string;
}
export interface RobinhoodInternalAuthResponseError {
    status: string;
    message: string;
    workflow_id?: string;
    tokenData?: TokenData;
}
export declare function authenticate(credentials: RobinhoodCredentials): Promise<RobinhoodInternalAuthResponse>;
export declare function submitChallenge(workflowId: string, userInput?: string): Promise<RobinhoodInternalAuthResponse>;
export declare function finalizeAuthentication(state: WorkflowState): Promise<RobinhoodInternalAuthResponse>;
export {};
//# sourceMappingURL=auth.d.ts.map