UNPKG

956 BTypeScriptView Raw
1import { Type } from '@angular/core';
2import { ApplicationConfig } from '@angular/platform-browser';
3import { DecoratorFunction, StoryContext } from '@storybook/types';
4import { ICollection, NgModuleMetadata, AngularRenderer } from './types';
5export declare const moduleMetadata: <TArgs = any>(metadata: Partial<NgModuleMetadata>) => DecoratorFunction<AngularRenderer, TArgs>;
6/**
7 * Decorator to set the config options which are available during the application bootstrap operation
8 */
9export declare function applicationConfig<TArgs = any>(
10/**
11 * Set of config options available during the application bootstrap operation.
12 */
13config: ApplicationConfig): DecoratorFunction<AngularRenderer, TArgs>;
14export declare const componentWrapperDecorator: <TArgs = any>(element: Type<unknown> | ((story: string) => string), props?: ICollection | ((storyContext: StoryContext<AngularRenderer, TArgs>) => ICollection)) => DecoratorFunction<AngularRenderer, TArgs>;