/** * Base custom error for the SDK. All other custom errors should extend this. */ export declare class SdkError extends Error { name: string; /** Optional stable, machine-readable error code. */ code?: string | undefined; /** * @param message - Human-readable error description. * @param code - Optional stable, machine-readable error code. */ constructor(message: string, code?: string); } /** * Error specifically for issues related to authentication. */ export declare class AuthError extends SdkError { name: string; /** * @param message - Human-readable error description. * @param code - Optional stable, machine-readable error code. */ constructor(message: string, code?: string); } /** * Error for network-related issues (e.g., API unreachable, bad response). */ export declare class NetworkError extends SdkError { name: string; /** HTTP status code associated with the failed response, when available. */ status?: number | undefined; /** * @param message - Human-readable error description. * @param status - HTTP status code associated with the failed response. * @param code - Optional stable, machine-readable error code. */ constructor(message: string, status?: number, code?: string); } /** * Asserts that the current environment is a browser. * Throws `SdkError` with code `BROWSER_ONLY` when `window` is undefined. * * @param api - Name of the API that requires a browser (used in the error message). */ export declare function assertBrowser(api: string): void; //# sourceMappingURL=errors.d.ts.map