@metamask/ocap-kernel
Version:
OCap kernel core components
19 lines • 732 B
text/typescript
/**
* Parse a string into an object with `isReachable` and `vatSlot` properties.
*
* @param value - The string to parse.
* @returns An object with `isReachable` and `vatSlot` properties.
*/
export declare function parseReachableAndVatSlot(value: string): {
isReachable: boolean;
vatSlot: string;
};
/**
* Build a string from an object with `isReachable` and `vatSlot` properties.
*
* @param isReachable - The `isReachable` property of the object.
* @param vatSlot - The `vatSlot` property of the object.
* @returns A string with the `isReachable` and `vatSlot` properties.
*/
export declare function buildReachableAndVatSlot(isReachable: boolean, vatSlot: string): string;
//# sourceMappingURL=reachable.d.cts.map