export declare type ApiRequestMethods = 'GET' | 'PATCH' | 'POST' | 'PUT' | 'DELETE'; export declare type ApiProxyRequestBody = { url: string; options: RequestInit; }; export declare type ApiProxyResponsePayload = { ok: true; status: number; status_text: string; headers: Record; data: unknown; } | { ok: false; status: number; status_text: string; error: string; }; export declare type RestrictedRequestInit = Omit; export interface CcsApiError { error: string; res: Response; }