import { ProxyDataAdapter } from "../adapter"; import { HandlerConfig, ProxyRouteInsert, RouteMatch } from "../types"; export interface StaticRouteInput { id?: string; priority?: number; match: RouteMatch; handlers: HandlerConfig[]; created_at?: string; updated_at?: string; } export interface StaticHostConfig { tenant_id?: string; custom_domain_id?: string; routes: StaticRouteInput[]; } export interface StaticProxyAdapterOptions { hosts: Record; defaultTenantId?: string; } export declare function createStaticProxyAdapter(options: StaticProxyAdapterOptions): ProxyDataAdapter; /** * Sugar for building a single HTTP-forwarding route in static configs. * Equivalent to `{ match: { path: "/*" }, handlers: [{ type: "http", options: { upstream_url, preserve_host } }] }`. */ export declare function httpRoute(upstream_url: string, options?: { path?: string; preserve_host?: boolean; priority?: number; }): StaticRouteInput; export type { ProxyRouteInsert };