import type { ProblemDetails } from "./types.js"; export interface BisibilityApiErrorOptions { body: string | undefined; headers: Headers; method: string; problem: ProblemDetails | undefined; status: number; url: string; } export interface BisibilityApiVersionErrorOptions extends BisibilityApiErrorOptions { declaredApiVersion: string; serverApiVersions: readonly string[]; } export declare class BisibilityError extends Error { } export declare class BisibilityApiError extends BisibilityError { readonly body: string | undefined; readonly headers: Headers; readonly method: string; readonly problem: ProblemDetails | undefined; readonly status: number; readonly url: string; constructor(message: string, options: BisibilityApiErrorOptions); get isRateLimit(): boolean; get isNotFound(): boolean; get retryAfterSeconds(): number | null; } export declare class BisibilityApiVersionError extends BisibilityApiError { readonly declaredApiVersion: string; readonly serverApiVersions: readonly string[]; constructor(message: string, options: BisibilityApiVersionErrorOptions); } export declare function isUnsupportedApiVersionProblem(problem: ProblemDetails | undefined): boolean; export declare class BisibilityConfigurationError extends BisibilityError { constructor(message: string); } export declare class BisibilityTimeoutError extends BisibilityError { constructor(message: string); } export declare class BisibilityNetworkError extends BisibilityError { readonly cause: unknown; readonly method: string; readonly url: string; constructor(message: string, options: { cause: unknown; method: string; url: string; }); } export declare class BisibilityResponseError extends BisibilityError { readonly body: string; readonly cause: unknown; readonly method: string; readonly status: number; readonly url: string; constructor(message: string, options: { body: string; cause: unknown; method: string; status: number; url: string; }); } //# sourceMappingURL=errors.d.ts.map