export type HeaderFactory = () => Record; export declare function withHeaders(fetchImpl: typeof fetch, headerFactory: HeaderFactory): (input: RequestInfo | URL, init?: RequestInit) => Promise; export declare function httpGet(fetcher: typeof fetch, url: string): Promise; export declare function httpPost(fetcher: typeof fetch, url: string, body: unknown, opts?: { idempotencyKey?: string; }): Promise;