import type { Runtime } from "../runtime/Runtime.ts"; export type DeferredRegistrationOperation = "register" | "update"; export type DeferredRegistrationFunction = (runtime: TRuntime, data: TData, operation: DeferredRegistrationOperation) => Promise | void; export type ModuleRegisterFunction = (runtime: TRuntime, context?: TContext) => Promise | void> | DeferredRegistrationFunction | void; export async function registerModule(register: ModuleRegisterFunction, runtime: TRuntime, context?: TContext) { return register(runtime, context); }