/** * Client-safe HTTP JSON datasource fetcher. * This file must NOT import from the DAL or any server-only modules * so it can be safely re-exported through the client barrel. */ import { type HostResolver } from "./egress-guard"; import type { HttpJsonRemoteDatasourceDefinition } from "./user-remote-datasource-types"; type FetchHttpJsonOptions = { /** * Checked against every address the request's host resolves to, on the first * request and on each redirect. Omit to check only the URL's own host. */ resolveHost?: HostResolver; }; export declare function fetchHttpJsonRemoteDatasourceOrThrow(definition: HttpJsonRemoteDatasourceDefinition, contextVars: Record, fetchImpl?: typeof fetch, options?: FetchHttpJsonOptions): Promise>; export declare function fetchHttpJsonRemoteDatasource(definition: HttpJsonRemoteDatasourceDefinition, contextVars: Record, fetchImpl?: typeof fetch, options?: FetchHttpJsonOptions): Promise>; export {};