import { AppleRelayResponse, AppleRelayWebSocketClient } from './relay'; export type AppleIDLoginInput = { registryApiUrl: string; accountName: string; password: string; token?: string; organizationId?: string; }; export type AppleIDLoginResult = { relay: AppleRelayWebSocketClient; completeResponse: AppleRelayResponse; twoFactorChallengeResponse?: AppleRelayResponse; requiresTwoFactor: boolean; finishTwoFactor: (code: string) => Promise; finalize: () => Promise; close: () => Promise; }; /** * Signs into an Apple ID through the relay using SRP, so the password never * leaves the browser in a recoverable form. Returns the connected relay plus * a two-factor continuation when Apple requires one. */ export declare function startBrowserOwnedAppleIDLogin({ registryApiUrl, accountName, password, token, organizationId, }: AppleIDLoginInput): Promise;