UNPKG

870 BTypeScriptView Raw
1import type { ArgType } from '@storybook/api';
2interface TagItem {
3 name: string;
4 type: {
5 [key: string]: any;
6 };
7 description: string;
8 default?: any;
9 kind?: string;
10 defaultValue?: any;
11}
12interface Tag {
13 name: string;
14 description: string;
15 attributes?: TagItem[];
16 properties?: TagItem[];
17 events?: TagItem[];
18 methods?: TagItem[];
19 members?: TagItem[];
20 slots?: TagItem[];
21 cssProperties?: TagItem[];
22 cssParts?: TagItem[];
23}
24interface CustomElements {
25 tags: Tag[];
26 modules?: [];
27}
28export declare const extractArgTypesFromElements: (tagName: string, customElements: CustomElements) => {
29 [x: string]: ArgType;
30};
31export declare const extractArgTypes: (tagName: string) => {
32 [x: string]: ArgType;
33};
34export declare const extractComponentDescription: (tagName: string) => string;
35export {};