UNPKG

656 BTypeScriptView Raw
1import { ComponentTitle, StoryName, StoryId, StoryKind } from 'storybook/internal/types';
2
3interface ParamsId {
4 storyId: StoryId;
5}
6interface ParamsCombo {
7 kind?: StoryKind;
8 title?: ComponentTitle;
9 story?: StoryName;
10 name?: StoryName;
11}
12declare const navigate: (params: ParamsId | ParamsCombo) => void;
13declare const hrefTo: (title: ComponentTitle, name: StoryName) => Promise<string>;
14declare const linkTo: (idOrTitle: string | ((...args: any[]) => string), nameInput?: string | ((...args: any[]) => string)) => (...args: any[]) => void;
15declare const withLinks: (...args: any) => any;
16
17export { hrefTo, linkTo, navigate, withLinks };