UNPKG

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