interface APIErrorBody { message?: string; type?: string; } export interface APIErrorDetails { body: APIErrorBody | undefined; status: number; } export declare function getAPIErrorDetails(err: unknown): APIErrorDetails | null; export declare function matchesAPIError(err: unknown, options: { keywords?: string[]; status?: number; }): boolean; export {};