import type { AudibleCookie, AudibleCredentials, AudibleLocale, AuthSession } from './types.js'; /** * Generate a login URL for the Audible PKCE OAuth flow. * * Returns the URL to redirect the user to, the session to pass back to `register`, * and the cookies to set in the browser before redirecting. */ export declare const login: (locale: AudibleLocale) => Promise<{ readonly loginUrl: string; readonly session: AuthSession; readonly cookies: AudibleCookie[]; }>; /** * Complete device registration using the authorization code from the OAuth callback. * * @param authorizationCode - The code received from the OAuth callback URL * @param session - The auth session returned by `login` * @returns The credentials to use for all subsequent API calls */ export declare const register: (authorizationCode: string, session: AuthSession) => Promise<{ accessToken: string; refreshToken: string; adpToken: string; devicePrivateKey: string; serial: string; locale: AudibleLocale; expiresAt: Date; }>; /** * Refresh an expired access token using the refresh token. * * @returns Updated credentials with the new access token and expiration */ export declare const refresh: (credentials: AudibleCredentials) => Promise<{ accessToken: string; expiresAt: Date; refreshToken: string; adpToken: string; devicePrivateKey: string; serial: string; locale: AudibleLocale; }>; //# sourceMappingURL=client.d.ts.map