UNPKG

492 BTypeScriptView Raw
1import { StoryId, AnyFramework } from '@storybook/csf';
2import { Story } from '@storybook/store';
3import { DocsContextProps } from './DocsContext';
4export declare function useStory<TFramework extends AnyFramework = AnyFramework>(storyId: StoryId, context: DocsContextProps<TFramework>): Story<TFramework> | void;
5export declare function useStories<TFramework extends AnyFramework = AnyFramework>(storyIds: StoryId[], context: DocsContextProps<TFramework>): (Story<TFramework> | void)[];