UNPKG

@metamask/ocap-kernel

Version:
15 lines 592 B
import type { KRef } from "../../types.mjs"; import type { StoreContext } from "../types.mjs"; /** * Create a pinned store that provides high-level functionality for managing pinned objects. * * @param ctx - The store context. * @returns A pinned store with functions for pinning/unpinning objects and managing pinned objects. */ export declare function getPinMethods(ctx: StoreContext): { pinObject: (kref: KRef) => void; unpinObject: (kref: KRef) => void; getPinnedObjects: () => KRef[]; isObjectPinned: (kref: KRef) => boolean; }; //# sourceMappingURL=pinned.d.mts.map