histoire
Version:
A fast story book powered by Vite
18 lines • 774 B
TypeScript
import type { ArtifactInventoryEntry } from './artifact-schema.js';
/** Validate complete immutable artifact before listener or optional browser import. */
export declare function readNodeArtifact(directory: string): Promise<{
root: string;
publicDir: string;
privateDir: string;
manifest: any;
publicAssets: Map<string, {
path: string;
sha256: string;
bytes: number;
}>;
/** Reads registered private text only, preserving original UTF-8 BOM and bytes. */
readContent(reference: ArtifactInventoryEntry): Promise<string>;
}>;
/** Validated immutable artifact accepted by catalog/listener adapters. */
export type NodeArtifact = Awaited<ReturnType<typeof readNodeArtifact>>;
//# sourceMappingURL=artifact-reader.d.ts.map