import type { $Fetch } from 'ofetch'; import type { RequestHeaders } from 'h3'; import type { ApiCacheDirectives } from '../http-cache.js'; interface RequestOptions { headers: Partial; method: 'POST' | 'PATCH' | 'DELETE'; } export default class CwaFetch { readonly fetch: $Fetch; private readonly cacheState; private readonly unauthorised; readonly writeHeaders: Record; constructor(baseURL: string); onUnauthorised(handler: () => void): void; markUnstorable(): void; get httpCacheState(): ApiCacheDirectives; getRequestOptions(method: 'POST' | 'PATCH' | 'DELETE'): RequestOptions; } export {};