UNPKG

histoire

Version:

A fast story book powered by Vite

61 lines • 2.34 kB
import type { ProjectRuntimeHandle } from '../../runtime/types.js'; /** Reuses generation canonical publication while retaining MCP projection policy. */ export declare function attachProjectCatalog(runtime: ProjectRuntimeHandle, options: { projectId: string; secret?: string; }): { catalog: { readonly current: import("./snapshot.js").CatalogSnapshot; readonly updating: boolean; markUpdating(): void; publish(ctx: import("../../context.js").Context, outcomes?: ReadonlyMap<string, import("../../collect/outcome.js").StoryCollectionOutcome>): Promise<import("./snapshot.js").CatalogSnapshot>; getStory(storyId: string, expectedRevision?: string): { revision: string; story: import("../../runtime/catalog/types.js").CatalogStory; projectId: string; }; getTarget(storyId: string, variantId: string, expectedRevision?: string): { revision: string; story: import("../../runtime/catalog/types.js").CatalogStory; variant: { id: string; title: string; }; projectId: string; }; list: (input: import("./catalog-pages.js").CatalogListInput) => { projectId: string; revision: string; updating: boolean; items: { id: string; title: string; treePath: string[]; filePath: string; fileOrigin?: "external" | "generated" | "project"; supportPluginId: string; group?: string; docsOnly: boolean; variants: { id: string; title: string; }[]; docsAvailable: boolean; sourceAvailable: boolean; sourceKind: "file" | "unavailable" | "virtual"; }[]; total: number; diagnostics: { filePath?: string; storyId?: string; code: string; message: string; }[]; diagnosticsTruncated: boolean; nextCursor: string; }; }; ready: Promise<void>; close: () => void; }; //# sourceMappingURL=runtime-catalog.d.ts.map