1 | import { FC } from 'react';
|
2 | import { SortType } from '@storybook/components';
|
3 | import { PropDescriptor } from '@storybook/store';
|
4 | import { StrictArgTypes } from '@storybook/csf';
|
5 | import { DocsContextProps } from './DocsContext';
|
6 | import { Component } from './types';
|
7 | interface BaseProps {
|
8 | include?: PropDescriptor;
|
9 | exclude?: PropDescriptor;
|
10 | sort?: SortType;
|
11 | }
|
12 | declare type OfProps = BaseProps & {
|
13 | of: '.' | '^' | Component;
|
14 | };
|
15 | declare type ComponentsProps = BaseProps & {
|
16 | components: {
|
17 | [label: string]: Component;
|
18 | };
|
19 | };
|
20 | declare type StoryProps = BaseProps & {
|
21 | story: '.' | '^' | string;
|
22 | showComponent?: boolean;
|
23 | };
|
24 | declare type ArgsTableProps = BaseProps | OfProps | ComponentsProps | StoryProps;
|
25 | export declare const extractComponentArgTypes: (component: Component, { id, storyById }: DocsContextProps, include?: PropDescriptor, exclude?: PropDescriptor) => StrictArgTypes;
|
26 | export declare const getComponent: (props: ArgsTableProps, { id, storyById }: DocsContextProps) => Component;
|
27 | export declare const StoryTable: FC<StoryProps & {
|
28 | component: Component;
|
29 | subcomponents: Record<string, Component>;
|
30 | }>;
|
31 | export declare const ComponentsTable: FC<ComponentsProps>;
|
32 | export declare const ArgsTable: FC<ArgsTableProps>;
|
33 | export {};
|