export { Telefunc }; import crossws from 'crossws/adapters/bun'; import type { Telefunc as TelefuncNamespace } from '../node/server/context/getContext.js'; type BunWs = ReturnType; type BunServer = Parameters[1]; type ServeInput = { request: Request; server: BunServer; context?: TelefuncNamespace.Context; }; interface TelefuncServe { websocket: BunWs['websocket']; serve(input: ServeInput): Promise; } interface Telefunc extends TelefuncServe { } declare class Telefunc { constructor(); }