export { getContext }; export { provideTelefuncContext }; export { PROVIDED_CONTEXT }; export type { Telefunc }; import type { Telefunc } from './TelefuncNamespace.js'; declare const PROVIDED_CONTEXT: unique symbol; declare function getContext(): Context & TelefuncBuiltins; type TelefuncBuiltins = { /** Register a callback that fires when the request lifecycle ends for any reason * (response sent, stream complete, or client disconnect). Fires exactly once. */ onClose: (cb: () => void) => void; /** AbortSignal that fires when the request lifecycle ends. Same timing as onClose. */ signal: AbortSignal; }; declare function provideTelefuncContext(context: Context): void;