export type SearchParamValue = string | number | boolean | undefined | null; export type PolymarketFetchJsonArgs = { operation: string; baseUrl: string; path: string; method?: string; searchParams?: Record; headers?: HeadersInit; body?: unknown; fetchFn?: typeof fetch; }; export declare function logFailedPolymarketResponse(operation: string, url: string | URL, response: Response): void; export declare function polymarketFetchJson({ operation, baseUrl, path, method, searchParams, headers, body, fetchFn, }: PolymarketFetchJsonArgs): Promise; export declare function buildPolymarketUrl(baseUrl: string, path: string, searchParams?: PolymarketFetchJsonArgs["searchParams"]): URL; export declare function appendPolymarketSearchParams(url: URL, parameters?: PolymarketFetchJsonArgs["searchParams"]): void;