import { Observable } from 'rxjs'; import { Timestamp } from './use-timestamp'; export type RequestMethod = 'GET' | 'HEAD' | 'POST' | 'PUT' | 'DELETE' | 'CONNECT' | 'OPTIONS' | 'TRACE' | 'PATCH'; export declare class RequestNetworkError extends Error { readonly statusCode: number; constructor(statusCode: number); } export declare function withRequest({ method, url, headers, body }: { method: RequestMethod; url: string; headers?: Record; body?: string; }): Observable<{ timestamp: Timestamp<'ns'>; payload: unknown; }>; //# sourceMappingURL=with-request.d.ts.map