import { Disposable } from "@codesandbox/pitcher-common"; /** * RcRef is created by an Rc to ensure consumers of this api can only drop their reference once */ export declare class RcRef extends Disposable { private rc; constructor(rc: Rc, onDrop: () => void); get object(): T; } /** * Rc keeps a reference to a value and a counter * Once all references using Rc.acquire() has been dropped, the underlying value is destroyed **/ export declare class Rc extends Disposable { object: T; static trace(event: string, ref: unknown): void; private count; private id; constructor(object: T, handleDispose: () => void); acquire(): RcRef; dispose(): void; } //# sourceMappingURL=Rc.d.ts.map