UNPKG

2.01 kBTypeScriptView Raw
1import Documentation, { ComponentDoc, PropDescriptor, SlotDescriptor, EventDescriptor, MethodDescriptor, ExposeDescriptor, BlockTag, Param, Tag, ParamTag, ParamType } from './Documentation';
2import type { ParseOptions, DocGenOptions } from './types';
3import * as ScriptHandlers from './script-handlers';
4import * as TemplateHandlers from './template-handlers';
5import getDoclets from './utils/getDoclets';
6import getProperties from './script-handlers/utils/getProperties';
7import getDocblock from './utils/getDocblock';
8export { ScriptHandlers };
9export { TemplateHandlers };
10export { getDoclets };
11export { getProperties };
12export { getDocblock };
13export { TemplateParserOptions } from './parse-template';
14export { ScriptHandler, TemplateHandler } from './parse';
15export { ComponentDoc, DocGenOptions, ParseOptions, Documentation, BlockTag, PropDescriptor, SlotDescriptor, EventDescriptor, MethodDescriptor, ExposeDescriptor, Param, Tag, ParamTag, ParamType };
16export { cleanName, getDefaultExample } from 'vue-inbrowser-compiler-independent-utils';
17/**
18 * Parse the component at filePath and return props, public methods, events and slots
19 * @param filePath absolute path of the parsed file
20 * @param opts
21 */
22export declare function parse(filePath: string, opts?: DocGenOptions | {
23 [alias: string]: string;
24}): Promise<ComponentDoc>;
25/**
26 * Parse all the components at filePath and returns an array of their
27 * props, public methods, events and slot
28 * @param filePath absolute path of the parsed file
29 * @param opts
30 */
31export declare function parseMulti(filePath: string, opts?: DocGenOptions): Promise<ComponentDoc[]>;
32/**
33 * Parse the `source` assuming that it is located at `filePath` and return props, public methods, events and slots
34 * @param source source code to be parsed
35 * @param filePath absolute path of the parsed file
36 * @param opts
37 */
38export declare function parseSource(source: string, filePath: string, opts?: DocGenOptions | {
39 [alias: string]: string;
40}): Promise<ComponentDoc>;