1 | import { Args, ComponentAnnotations, AnnotatedStoryFn, StoryAnnotations, StrictArgs, DecoratorFunction, LoaderFunction, StoryContext as StoryContext$1, ProjectAnnotations, Addon_ClientStoryApi, Addon_Loadable } from '@storybook/types';
|
2 | export { ArgTypes, Args, Parameters, StrictArgs } from '@storybook/types';
|
3 | import { W as WebComponentsRenderer } from './types-0360da9f.js';
|
4 | import 'lit';
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 | type Meta<TArgs = Args> = ComponentAnnotations<WebComponentsRenderer, TArgs>;
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 | type StoryFn<TArgs = Args> = AnnotatedStoryFn<WebComponentsRenderer, TArgs>;
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 | type StoryObj<TArgs = Args> = StoryAnnotations<WebComponentsRenderer, TArgs>;
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 | type Story<TArgs = Args> = StoryFn<TArgs>;
|
34 | type Decorator<TArgs = StrictArgs> = DecoratorFunction<WebComponentsRenderer, TArgs>;
|
35 | type Loader<TArgs = StrictArgs> = LoaderFunction<WebComponentsRenderer, TArgs>;
|
36 | type StoryContext<TArgs = StrictArgs> = StoryContext$1<WebComponentsRenderer, TArgs>;
|
37 | type Preview = ProjectAnnotations<WebComponentsRenderer>;
|
38 |
|
39 | interface ClientApi extends Addon_ClientStoryApi<WebComponentsRenderer['storyResult']> {
|
40 | configure(loader: Addon_Loadable, module: NodeModule): void;
|
41 | forceReRender(): void;
|
42 | raw: () => any;
|
43 | }
|
44 | declare const storiesOf: ClientApi['storiesOf'];
|
45 | declare const configure: ClientApi['configure'];
|
46 | declare const forceReRender: ClientApi['forceReRender'];
|
47 | declare const raw: ClientApi['raw'];
|
48 |
|
49 | declare function isValidComponent(tagName: string): boolean;
|
50 | declare function isValidMetaData(customElements: any): boolean;
|
51 | /**
|
52 | * @param customElements any for now as spec is not super stable yet
|
53 | */
|
54 | declare function setCustomElements(customElements: any): void;
|
55 | declare function setCustomElementsManifest(customElements: any): void;
|
56 | declare function getCustomElements(): any;
|
57 |
|
58 | export { Decorator, Loader, Meta, Preview, Story, StoryContext, StoryFn, StoryObj, WebComponentsRenderer, configure, forceReRender, getCustomElements, isValidComponent, isValidMetaData, raw, setCustomElements, setCustomElementsManifest, storiesOf };
|