UNPKG

710 BTypeScriptView Raw
1import { Component } from '../../blocks/types';
2import { ExtractedJsDoc } from '../jsdocParser';
3import { PropDef, DocgenInfo, TypeSystem } from './types';
4export interface ExtractedProp {
5 propDef: PropDef;
6 docgenInfo: DocgenInfo;
7 jsDocTags: ExtractedJsDoc;
8 typeSystem: TypeSystem;
9}
10export declare type ExtractProps = (component: Component, section: string) => ExtractedProp[];
11export declare const extractComponentSectionArray: (docgenSection: any) => any;
12export declare const extractComponentSectionObject: (docgenSection: any) => ExtractedProp[];
13export declare const extractComponentProps: ExtractProps;
14export declare function extractComponentDescription(component?: Component): string;