import type { Store } from "./types.js"; /** * Stats returned by `exportBundle`. */ export type ExportStats = { nodes: number; vars: number; tags: number; }; /** * Options for `importBundle`. */ export type ImportOptions = { /** Replace the original `@scope` of each non-builtin variable with this value. */ scope?: string; }; /** * Stats returned by `importBundle`. */ export type ImportStats = { nodes: { imported: number; skipped: number; }; vars: { created: number; updated: number; }; tags: number; }; /** * Compute the transitive CAS closure of `roots`, write a tar archive at * `outputPath` containing all CAS nodes (`cas/.bin`), variables * (`vars.jsonl`), and tags (`tags.jsonl`). */ export declare function exportBundle(store: Store, roots: string[], outputPath: string): Promise; /** * Read a bundle from disk and apply its contents to `target`. */ export declare function importBundle(bundlePath: string, target: Store, options?: ImportOptions): Promise; /** * Build a read-only `Store` whose contents come from a bundle tar file. */ export declare function loadBundleStore(bundlePath: string): Promise; //# sourceMappingURL=bundle.d.ts.map