export interface GCSignal { } /** * Create a new GC signal. When being garbage collected the passed * value is stored for later consumption. */ export declare const GCSignal: { new (id: number): GCSignal; }; /** * Consume ids of garbage collected signals. */ export declare function consumeSignals(): number[]; /** * Get called when any call to `consumeSignals` yielded in a result. */ export declare function onDidGarbageCollectSignals(callback: (ids: number[]) => any): { dispose(): void; }; /** * Utility method to store a weak reference of an object * along with an identifier. The id will be used to track * garbage collection of the object. */ export declare function trackGarbageCollection(obj: any, id: number): number;