@endo/compartment-mapper
Version:
The compartment mapper assembles Node applications in a sandbox
14 lines • 981 B
TypeScript
export function makeAndHashArchive(powers: ReadFn | ReadPowers, moduleLocation: string, options?: ArchiveOptions): Promise<{
bytes: Uint8Array;
sha512?: string;
}>;
export function makeArchive(powers: ReadFn | ReadPowers, moduleLocation: string, options?: ArchiveOptions): Promise<Uint8Array>;
export function mapLocation(powers: ReadFn | ReadPowers, moduleLocation: string, options?: ArchiveOptions): Promise<Uint8Array>;
export function hashLocation(powers: HashPowers, moduleLocation: string, options?: ArchiveOptions): Promise<string>;
export function writeArchive(write: WriteFn, readPowers: ReadFn | ReadPowers, archiveLocation: string, moduleLocation: string, options?: ArchiveOptions): Promise<void>;
import type { ReadFn } from './types.js';
import type { ReadPowers } from './types.js';
import type { ArchiveOptions } from './types.js';
import type { HashPowers } from './types.js';
import type { WriteFn } from './types.js';
//# sourceMappingURL=archive.d.ts.map