UNPKG

508 BTypeScriptView Raw
1import type { Context } from "./Context.js";
2/**
3 * Used internally to setup a new Context
4 */
5export declare function onContextInit(cb: (ctx: Context) => void): void;
6/**
7 * Invoke any classes which need to also be initialized when a new context is created.
8 */
9export declare function initializeContext(ctx: Context): void;
10/**
11 * Used internally to tear down a Context
12 */
13export declare function onContextClose(cb: (ctx: Context) => void): void;
14export declare function closeContext(ctx: Context): void;