UNPKG

@metamask/ocap-kernel

Version:
18 lines 686 B
import type { VatId, KRef, GCAction, RunQueueItemBringOutYourDead } from "../../types.cjs"; import type { StoreContext } from "../types.cjs"; /** * Create a store for garbage collection. * * @param ctx - The store context. * @returns The GC store. */ export declare function getGCMethods(ctx: StoreContext): { getGCActions: () => Set<GCAction>; setGCActions: (actions: Set<GCAction>) => void; addGCActions: (newActions: GCAction[]) => void; scheduleReap: (vatId: VatId) => void; nextReapAction: () => RunQueueItemBringOutYourDead | undefined; retireKernelObjects: (koids: KRef[]) => void; collectGarbage: () => void; }; //# sourceMappingURL=gc.d.cts.map