import { Document } from './types'; export type HttpMethod = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH'; export type FetchResponse = T & { data: T; status: number; headers: Headers; }; export interface FetchError { data: string; status: number; [key: string]: unknown; } export declare function fetcher(url: string, options?: { method?: HttpMethod; body?: Document | null; headers?: Record; direct?: boolean; transform?: (response: unknown) => E; }): Promise>;