import { type BodyCodec } from "../codecs/index.ts"; import type { RouteDeclaration } from "../contract/contract.ts"; import type { ResponseDeclaration } from "../contract/response.ts"; import type { FetchArgs } from "./types.ts"; export declare const getResponseSchema: (route: RouteDeclaration, status: number) => ResponseDeclaration | undefined; export type RouteRequestFn = (route: E, routePath: readonly string[], ...args: FetchArgs) => Promise; export declare const fetchResponse: (request: RouteRequestFn, validateResponse: boolean, bodyCodecs: readonly BodyCodec[] | undefined, route: E, routePath: readonly string[], ...args: FetchArgs) => Promise<{ body: unknown; status: number; headers: Headers; responseHeaders: Record | undefined; }>; export declare const fetchSuccess: (fetchRouteResponse: (route: E, routePath: readonly string[], ...args: FetchArgs) => Promise<{ status: number; body?: unknown; }>, route: E, routePath: readonly string[], ...args: FetchArgs) => Promise;