hono
Version:
Web framework built on Web Standards
13 lines (12 loc) • 586 B
TypeScript
/**
* @module
* Adapter Helper for Hono.
*/
import type { Context } from '../../context';
export type Runtime = 'node' | 'deno' | 'bun' | 'workerd' | 'fastly' | 'edge-light' | 'other';
export declare const env: <T extends Record<string, unknown>, C extends Context = Context<{
Bindings: T;
}>>(c: T extends Record<string, unknown> ? Context : C, runtime?: Runtime) => T & C["env"];
export declare const knownUserAgents: Partial<Record<Runtime, string>>;
export declare const getRuntimeKey: () => Runtime;
export declare const checkUserAgentEquals: (platform: string) => boolean;