/** * Shape of the Storybook 10.x AI-ready manifests emitted at * `docs/manifests/components.json` and `docs/manifests/docs.json` during * `storybook build`, mirrored to the Dynamic Framework CDN under * `cdn.dynamicframework.dev/assets//ui-react/manifests/`. * * The top-level `v` field is the experimental schema version maintained * upstream by Storybook. As of Storybook 10.2.x this is `0`. Bumps are * non-breaking additions; we do not pin it here — consumers should treat * unknown fields as additive. */ export interface ComponentManifest { v: number; components: Record; } export interface ComponentEntry { id: string; name: string; path: string; stories: StoryEntry[]; import: string; reactDocgen: ReactDocgen; jsDocTags?: JsDocTags; description?: string; docs?: Record; } export interface StoryEntry { id: string; name: string; snippet: string; description?: string; } export interface ReactDocgen { displayName: string; props: Record; } export interface PropDoc { required: boolean; tsType?: { name: string; raw?: string; }; description?: string; defaultValue?: { value: string; }; } export interface JsDocTags { [tagName: string]: string[]; } export interface DocsManifest { v: number; docs: Record; } export interface DocsEntry { id: string; name: string; path: string; title: string; content: string; } /** * Splits a Storybook story id into its component parent id and story key. * * Storybook story ids follow the shape `--` where the * separator is a double-dash. Both halves may contain single dashes, so the * split must use the LAST `--` (lastIndexOf), not the first. * * Returns null when the id contains no `--` separator (e.g. a docs entry * supplied without its `--docs` suffix, or a malformed input). * * splitStoryId("patterns-list-group-patterns--transaction-history") * → { parentId: "patterns-list-group-patterns", storyKey: "transaction-history" } * * splitStoryId("patterns-list-group-patterns") → null */ export declare function splitStoryId(storyId: string): { parentId: string; storyKey: string; } | null; //# sourceMappingURL=storybookManifestTypes.d.ts.map