UNPKG

crann

Version:

Effortless State Synchronization for Web Extensions

17 lines (16 loc) 662 B
import { RETAINED_BY, RETAIN_METHOD, RELEASE_METHOD } from "./types"; import type { Retainer, MemoryManageable } from "./types"; export { RETAINED_BY, RETAIN_METHOD, RELEASE_METHOD }; export type { Retainer, MemoryManageable }; export declare class StackFrame { private readonly memoryManaged; add(memoryManageable: MemoryManageable): void; release(): void; } export declare function isMemoryManageable(value: unknown): value is MemoryManageable; export declare function retain(value: any, { deep }?: { deep?: boolean | undefined; }): boolean; export declare function release(value: any, { deep }?: { deep?: boolean | undefined; }): boolean;