UNPKG

histoire

Version:

A fast story book powered by Vite

12 lines • 1.05 kB
import type { HistoireVisualCase } from '@histoire/shared'; import type { Context } from '../context.js'; import type { ResolvedVisualConfig } from './config.js'; /** Derive canonical identity from exact scoped target rather than display label. */ export declare function createCanonicalCase(storyId: string, variantId: string, label: string): HistoireVisualCase; /** Snapshot explicit Matrix props; no internal fields or lossy serialization allowed. */ export declare function createMatrixCase(input: Omit<HistoireVisualCase, 'id' | 'kind' | 'schemaVersion'>): HistoireVisualCase; /** Canonical inventory and saved cells share exclusions and current catalog authority. */ export declare function listVisualCases(ctx: Context, config: ResolvedVisualConfig): Promise<HistoireVisualCase[]>; /** Save deduplicated Matrix definition, never baseline images. */ export declare function saveVisualCase(ctx: Context, config: ResolvedVisualConfig, input: Parameters<typeof createMatrixCase>[0]): Promise<HistoireVisualCase>; //# sourceMappingURL=cases.d.ts.map