UNPKG

memfs

Version:

In-memory file-system with Node's fs API.

7 lines (6 loc) 619 B
import type { CborUint8Array } from 'json-joy/es6/json-pack/cbor/types'; import type { AsyncSnapshotOptions, SnapshotNode, SnapshotOptions } from './types'; export declare const toBinarySnapshotSync: (options: SnapshotOptions) => CborUint8Array<SnapshotNode>; export declare const fromBinarySnapshotSync: (uint8: CborUint8Array<SnapshotNode>, options: SnapshotOptions) => void; export declare const toBinarySnapshot: (options: AsyncSnapshotOptions) => Promise<CborUint8Array<SnapshotNode>>; export declare const fromBinarySnapshot: (uint8: CborUint8Array<SnapshotNode>, options: AsyncSnapshotOptions) => Promise<void>;