UNPKG

@metamask/ocap-kernel

Version:
19 lines 924 B
import type { VatSyscallObject } from "@agoric/swingset-liveslots"; import type { CapData } from "@endo/marshal"; import type { Message, VatId, KRef, VRef } from "../../types.mjs"; import type { StoreContext } from "../types.mjs"; /** * Create a translator object that provides functionality for translating * references and messages between kernel and vat spaces. * * @param ctx - The store context. * @returns A translator object that maps various kernel data structures * onto `kv`. */ export declare function getTranslators(ctx: StoreContext): { translateRefKtoV: (vatId: VatId, kref: KRef, importIfNeeded: boolean) => VRef; translateCapDataKtoV: (vatId: VatId, capdata: CapData<KRef>) => CapData<VRef>; translateMessageKtoV: (vatId: VatId, message: Message) => Message; translateSyscallVtoK: (vatId: VatId, vso: VatSyscallObject) => VatSyscallObject; }; //# sourceMappingURL=translators.d.mts.map