import type { AudibleCredentials, LastPosition } from './types.js'; /** * Fetch the user's entire Audible library with automatic pagination. * Credentials are auto-refreshed if expired. * * @returns All library items and the (potentially refreshed) credentials */ export declare const library: (credentials: AudibleCredentials) => Promise<{ items: import("./types.js").AudibleItem[]; credentials: AudibleCredentials; }>; /** * Fetch the user's entire Audible wishlist with automatic pagination. * Credentials are auto-refreshed if expired. * * @returns All wishlist items and the (potentially refreshed) credentials */ export declare const wishlist: (credentials: AudibleCredentials) => Promise<{ items: import("./types.js").AudibleItem[]; credentials: AudibleCredentials; }>; /** * Fetch where the reader last stopped in each of the given titles. * Asked in batches of 25, the most Audible accepts per call. A title the * reader never opened is left out of the answer. * Credentials are auto-refreshed if expired. * * @returns The last positions and the (potentially refreshed) credentials */ export declare const lastPositions: (credentials: AudibleCredentials, asins: readonly string[]) => Promise<{ positions: LastPosition[]; credentials: AudibleCredentials; }>; /** * Verify that credentials are valid by making a minimal API call. * Credentials are auto-refreshed if expired. * * @throws If credentials are invalid or expired */ export declare const verify: (credentials: AudibleCredentials) => Promise; //# sourceMappingURL=library.d.ts.map