index.d.ts 930 B

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