1 | import * as bt from '@babel/types';
|
2 | import { NodePath } from 'ast-types/lib/node-path';
|
3 | import Documentation, { PropDescriptor } from '../Documentation';
|
4 | import type { ParseOptions } from '../types';
|
5 | export declare function getRawValueParsedFromFunctionsBlockStatementNode(blockStatementNode: bt.BlockStatement): string | null;
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 | export default function propHandler(documentation: Documentation, path: NodePath, ast: bt.File, opt: ParseOptions): Promise<void>;
|
12 | export declare function describePropsFromValue(documentation: Documentation, propsValuePath: NodePath<bt.ObjectExpression, any> | NodePath<bt.ArrayExpression, any>, ast: bt.File, opt: ParseOptions, modelPropertyName?: string | null): Promise<void>;
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 | export declare function describeType(propPropertiesPath: NodePath<bt.ObjectProperty | bt.ObjectMethod>[], propDescriptor: PropDescriptor): string | undefined;
|
20 | export declare function getTypeFromTypePath(typePath: NodePath<bt.TSAsExpression | bt.Identifier | bt.ObjectProperty>): {
|
21 | name: string;
|
22 | func?: boolean;
|
23 | };
|
24 | export declare function getValuesFromTypeAnnotation(type: bt.TSType): string[] | undefined;
|
25 | export declare function describeRequired(propPropertiesPath: NodePath<bt.ObjectProperty | bt.ObjectMethod>[], propDescriptor: PropDescriptor): void;
|
26 | export declare function describeDefault(propPropertiesPath: NodePath<bt.ObjectProperty | bt.ObjectMethod>[], propDescriptor: PropDescriptor, propType: string): void;
|
27 | export declare function extractValuesFromTags(propDescriptor: PropDescriptor): void;
|