export declare const LONG_STREAM_API_OPTIONS: { readonly timeoutMs: number; readonly maxResponseBytes: number; }; export type ApiFetchOptions = RequestInit & { /** Generic services always use their explicit bearer token, regardless of prefix. */ explicitBearerAuth?: boolean; timeoutMs?: number; maxResponseBytes?: number; }; export declare class ApiTimeoutError extends Error { readonly timeoutMs: number; readonly requestUrl: string; readonly code = "OPENPOND_API_TIMEOUT"; constructor(timeoutMs: number, requestUrl: string); } export declare class ApiResponseTooLargeError extends Error { readonly maximumBytes: number; readonly requestUrl: string; readonly code = "OPENPOND_API_RESPONSE_TOO_LARGE"; constructor(maximumBytes: number, requestUrl: string); } export declare class OpenPondApiError extends Error { readonly status: number; readonly apiMessage: string | null; readonly code: string; constructor(status: number, errorCode: string | null, label: string, apiMessage?: string | null); } export declare function apiFetch(baseUrl: string, token: string | null, requestPath: string, options?: ApiFetchOptions): Promise; export declare function readApiJson(response: Response, label: string): Promise;