import { Api, ClientOf } from "./ApiRoutes.js"; import { SharedValConfig } from "./SharedValConfig.js"; export type ValClient = ClientOf; export declare const createValClient: (host: string, config: SharedValConfig | null, // We want to use this in the future options?: { /** * What sends a request. The network's `fetch` unless given. * * The demo passes one that hands the `Request` to Val's server running in * the same tab (`@valbuild/server/browser`), so everything on both sides * of the call is the real thing and only the network is gone. */ fetch?: (input: string, init: RequestInit) => Promise; }) => ValClient;