UNPKG

histoire

Version:

A fast story book powered by Vite

19 lines • 1.52 kB
import type { HistoireSourceDescriptor } from '@histoire/protocol'; import type { Context } from '../../context.js'; import type { EmbedSource } from './source.js'; /** Prepared source assets retain one captured completed publication until descriptor commit. */ export interface PreparedEmbedOutput { /** Completed source capture, never serialized directly. */ source: EmbedSource; /** Portable dev-shaped descriptor before final static identity is known. */ descriptor: HistoireSourceDescriptor; } /** Writes one owned public lazy JSON asset, creating only its relative parent directory. */ export declare function writeSourceAsset(outputRoot: string, path: string, value: unknown): Promise<void>; /** Shared exact-target lazy bodies serve standalone and public embeds from one content provider. */ export declare function writeSourceContent(source: EmbedSource, outputRoot: string): Promise<void>; /** Emits identity-free content/search/bootstrap before immutable build identity is calculated. */ export declare function prepareEmbedOutput(ctx: Context, source: EmbedSource, outputRoot: string, bundleFile: string, styleFile?: string): Promise<PreparedEmbedOutput | undefined>; /** Commits excluded identity metadata after all hashed runtime assets have their final bytes. */ export declare function writeEmbedDescriptor(ctx: Context, prepared: PreparedEmbedOutput | undefined, outputRoot: string, buildId: string): Promise<HistoireSourceDescriptor | undefined>; //# sourceMappingURL=output.d.ts.map