import type { AudibleCredentials, AudibleItem, CatalogOptions, SearchOptions } from './types.js'; /** * Search the Audible catalog by category with optional filters. * Credentials are auto-refreshed if expired. * * - `sortBy: 'MostVoted'` (default) — fetches pages, sorts by votes desc then rating desc. * - Any other `sortBy` — single-page fetch using the Audible API sort order. * * `limit` controls how many items to return (default 50, `'all'` for everything). * * @returns Catalog items sorted by the chosen criteria and the credentials */ export declare const catalog: (credentials: AudibleCredentials, options: CatalogOptions) => Promise<{ items: AudibleItem[]; credentials: AudibleCredentials; }>; /** * Search the whole Audible catalog of the account's marketplace, without a * category: by title, author, narrator or free keywords, most relevant first. * Credentials are auto-refreshed if expired. * * `limit` controls how many items to return (default 10, at most 50). * * @returns The matching catalog items and the credentials */ export declare const search: (credentials: AudibleCredentials, options: SearchOptions) => Promise<{ items: AudibleItem[]; credentials: AudibleCredentials | { accessToken: string; expiresAt: Date; refreshToken: string; adpToken: string; devicePrivateKey: string; serial: string; locale: import("./types.js").AudibleLocale; }; }>; /** * Look one audiobook up by its ASIN in the account's marketplace, whether or not * the account owns it. Credentials are auto-refreshed if expired. * * Audible answers an ASIN it does not sell there with an empty product rather * than an error: `item` is then undefined. * * @returns The catalog item, if any, and the credentials */ export declare const product: (credentials: AudibleCredentials, asin: string) => Promise<{ item: AudibleItem | undefined; credentials: AudibleCredentials | { accessToken: string; expiresAt: Date; refreshToken: string; adpToken: string; devicePrivateKey: string; serial: string; locale: import("./types.js").AudibleLocale; }; }>; //# sourceMappingURL=catalog.d.ts.map