1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 | import { NodePath } from '@babel/traverse';
|
15 | import * as babel from '@babel/types';
|
16 | import { Document, Feature, JsAstNode, SourceRange, Warning } from '../model/model';
|
17 | import { Resolvable } from '../model/resolvable';
|
18 | import { Visitor } from './estree-visitor';
|
19 | import { JavaScriptDocument } from './javascript-document';
|
20 | import { JavaScriptScanner } from './javascript-scanner';
|
21 | export declare type ExportNode = babel.ExportNamedDeclaration | babel.ExportAllDeclaration | babel.ExportDefaultDeclaration;
|
22 | declare module '../model/queryable' {
|
23 | interface FeatureKindMap {
|
24 | 'export': Export;
|
25 | }
|
26 | }
|
27 | export declare class Export implements Resolvable, Feature {
|
28 | readonly kinds: ReadonlySet<string>;
|
29 | readonly identifiers: Set<string>;
|
30 | readonly description: undefined;
|
31 | readonly jsdoc: undefined;
|
32 | readonly sourceRange: SourceRange | undefined;
|
33 | readonly astNodePath: NodePath<babel.Node>;
|
34 | readonly astNode: JsAstNode<ExportNode>;
|
35 | readonly statementAst: babel.Statement;
|
36 | readonly warnings: ReadonlyArray<Warning>;
|
37 | constructor(astNode: JsAstNode<ExportNode>, statementAst: babel.Statement, sourceRange: SourceRange | undefined, nodePath: NodePath<babel.Node>, exportingAllFrom?: Iterable<Export>);
|
38 | resolve(document: Document): Feature | undefined;
|
39 | }
|
40 | export declare class JavaScriptExportScanner implements JavaScriptScanner {
|
41 | scan(document: JavaScriptDocument, visit: (visitor: Visitor) => Promise<void>): Promise<{
|
42 | features: Export[];
|
43 | warnings: Warning[];
|
44 | }>;
|
45 | }
|