@metamask/ocap-kernel
Version:
OCap kernel core components
10 lines • 410 B
text/typescript
import type { CapData } from "@endo/marshal";
import type { KRef } from "../../types.cjs";
/**
* Obtain the KRef from a simple value represented as a CapData object.
*
* @param data - The data object to be examined.
* @returns the single KRef that is `data`, or null if it isn't one.
*/
export declare function extractSingleRef(data: CapData<KRef>): KRef | null;
//# sourceMappingURL=extract-ref.d.cts.map