@metamask/ocap-kernel
Version:
OCap kernel core components
15 lines • 592 B
text/typescript
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