UNPKG

histoire

Version:

A fast story book powered by Vite

24 lines • 1.15 kB
import type { CatalogSnapshot, CatalogStory } from './types.js'; /** Preserves exact valid IDs while rejecting malformed/oversized values. */ export declare function validId(value: unknown): value is string; /** Allows registered relative labels without serializing absolute private paths. */ export declare function validRelativePath(value: unknown): value is string; /** Checks the explicit collection projection before publication. */ export declare function validStory(value: CatalogStory): boolean; /** Resolves exact target identity and never silently chooses duplicate records. */ export declare function lookupStory(snapshot: CatalogSnapshot, storyId: string, expectedRevision?: string): { projectId: string; revision: string; story: CatalogStory; }; /** Validates exact scoped variant identity against the completed catalog. */ export declare function lookupTarget(snapshot: CatalogSnapshot, storyId: string, variantId: string, expectedRevision?: string): { projectId: string; revision: string; story: CatalogStory; variant: { id: string; title: string; }; }; //# sourceMappingURL=lookup.d.ts.map