1 | import { Args, Parameters as DefaultParameters, StoryContext as DefaultStoryContext, ComponentAnnotations, StoryAnnotations, AnnotatedStoryFn } from '@storybook/csf';
|
2 | import { StoryFnAngularReturnType } from './types';
|
3 | export type { Args, ArgTypes } from '@storybook/csf';
|
4 | export declare type AngularFramework = {
|
5 | component: any;
|
6 | storyResult: StoryFnAngularReturnType;
|
7 | };
|
8 | /**
|
9 | * Metadata to configure the stories for a component.
|
10 | *
|
11 | * @see [Default export](https://storybook.js.org/docs/formats/component-story-format/#default-export)
|
12 | */
|
13 | export declare type Meta<TArgs = Args> = ComponentAnnotations<AngularFramework, TArgs>;
|
14 | /**
|
15 | * Story function that represents a CSFv2 component example.
|
16 | *
|
17 | * @see [Named Story exports](https://storybook.js.org/docs/formats/component-story-format/#named-story-exports)
|
18 | */
|
19 | export declare type StoryFn<TArgs = Args> = AnnotatedStoryFn<AngularFramework, TArgs>;
|
20 | /**
|
21 | * Story function that represents a CSFv3 component example.
|
22 | *
|
23 | * @see [Named Story exports](https://storybook.js.org/docs/formats/component-story-format/#named-story-exports)
|
24 | */
|
25 | export declare type StoryObj<TArgs = Args> = StoryAnnotations<AngularFramework, TArgs>;
|
26 | /**
|
27 | * Story function that represents a CSFv2 component example.
|
28 | *
|
29 | * @see [Named Story exports](https://storybook.js.org/docs/formats/component-story-format/#named-story-exports)
|
30 | *
|
31 | * NOTE that in Storybook 7.0, this type will be renamed to `StoryFn` and replaced by the current `StoryObj` type.
|
32 | *
|
33 | */
|
34 | export declare type Story<TArgs = Args> = StoryFn<TArgs>;
|
35 | export declare type Parameters = DefaultParameters & {
|
36 | /** Uses legacy angular rendering engine that use dynamic component */
|
37 | angularLegacyRendering?: boolean;
|
38 | bootstrapModuleOptions?: unknown;
|
39 | };
|
40 | export declare type StoryContext = DefaultStoryContext<AngularFramework> & {
|
41 | parameters: Parameters;
|
42 | };
|