export { getRawContext }; export { restoreContext }; export { provideContext }; export { installAsyncMode }; export { isAsyncMode }; export type { Context }; import type { Telefunc } from './TelefuncNamespace.js'; /** Unified context object. Symbol-keyed — each concern owns its own key. */ type Context = { [key: symbol]: unknown; }; type ContextGetter = () => Context | null; type RestoreContext = (context: Context, fn: () => T) => T; type ProvideTelefuncContext = (context: Telefunc.Context) => void; /** Get the unified context object. Extensions use this to read/write their own symbol keys. */ declare function getRawContext(): Context | null; declare function restoreContext(context: Context, fn: () => T): T; declare function provideContext(context: Telefunc.Context): void; declare function installAsyncMode({ provideTelefuncContext_async, restoreContext_async, getContextStore, }: { provideTelefuncContext_async: ProvideTelefuncContext; restoreContext_async: RestoreContext; getContextStore: ContextGetter; }): void; declare function isAsyncMode(): boolean;