import type { Operation, Scope } from "./types.js"; export declare function createScopeInternal(parent?: Scope): [ScopeInternal, () => Operation]; export declare function buildScopeInternal(parent?: Scope): [ScopeInternal, () => Operation]; export interface ScopeInternal extends Scope, AsyncDisposable { contexts: Record; ensure(op: () => Operation): () => void; destroy(): Operation; }