UNPKG

@storybook/addon-svelte-csf

Version:
20 lines (19 loc) 702 B
import type { SvelteAST } from '../../../ast.js'; import type { SvelteASTNodes } from '../../../extract/svelte/nodes.js'; type StoryIdentifiers = { exportName: string; name: string | undefined; }; interface GetIdentifiersParams { nameNode?: SvelteAST.Attribute | undefined; exportNameNode?: SvelteAST.Attribute | undefined; filename?: string; component: SvelteAST.Component; } export declare function getStoryIdentifiers(options: GetIdentifiersParams): StoryIdentifiers; interface GetStoriesIdentifiersParams { nodes: SvelteASTNodes; filename?: string; } export declare function getStoriesIdentifiers(params: GetStoriesIdentifiersParams): StoryIdentifiers[]; export {};