UNPKG

905 BTypeScriptView Raw
1import * as lib_preview_api_dist_addons from '@storybook/preview-api/dist/addons';
2import { ComponentTitle, StoryName, StoryId, StoryKind } from '@storybook/types';
3
4interface ParamsId {
5 storyId: StoryId;
6}
7interface ParamsCombo {
8 kind?: StoryKind;
9 title?: ComponentTitle;
10 story?: StoryName;
11 name?: StoryName;
12}
13declare const navigate: (params: ParamsId | ParamsCombo) => void;
14declare const hrefTo: (title: ComponentTitle, name: StoryName) => Promise<string>;
15declare const linkTo: (idOrTitle: string | ((...args: any[]) => string), nameInput?: string | ((...args: any[]) => string) | undefined) => (...args: any[]) => void;
16declare const withLinks: lib_preview_api_dist_addons.MakeDecoratorResult;
17
18/**
19 * @deprecated please import this specific function from @storybook/addon-links/react
20 */
21declare function LinkTo(): null;
22
23export { LinkTo, hrefTo, linkTo, navigate, withLinks };