1 | import ts from 'typescript';
|
2 | export declare type StatementedNode = ts.Block | ts.SourceFile | ts.FunctionDeclaration | ts.ModuleDeclaration | ts.FunctionLikeDeclaration | ts.CaseClause | ts.DefaultClause;
|
3 | export declare function getStatements(node: StatementedNode): readonly ts.Statement[];
|
4 | export declare function getClasses(node: StatementedNode): readonly ts.ClassDeclaration[];
|
5 | export declare function getClass(node: StatementedNode, name: string): ts.ClassDeclaration | undefined;
|
6 | export declare function getClassOrThrow(node: StatementedNode, name: string): ts.ClassDeclaration;
|
7 | export declare function getInterfaces(node: StatementedNode): readonly ts.InterfaceDeclaration[];
|
8 | export declare function getInterface(node: StatementedNode, name: string): ts.InterfaceDeclaration | undefined;
|
9 | export declare function getInterfaceOrThrow(node: StatementedNode, name: string): ts.InterfaceDeclaration;
|
10 | export declare function getNamespaces(node: StatementedNode): readonly ts.ModuleDeclaration[];
|
11 | export declare function getNamespace(node: StatementedNode, name: string): ts.ModuleDeclaration | undefined;
|
12 | export declare function getNamespaceOrThrow(node: StatementedNode, name: string): ts.ModuleDeclaration;
|
13 | export declare function getVariableStatements(node: StatementedNode): readonly ts.VariableStatement[];
|
14 | export declare function getVariableDeclarations(node: StatementedNode): readonly ts.VariableDeclaration[];
|
15 | export declare function getVariableDeclaration(node: StatementedNode, name: string): ts.VariableDeclaration | undefined;
|
16 | export declare function getVariableDeclarationOrThrow(node: StatementedNode, name: string): ts.VariableDeclaration;
|
17 | export declare function getTypeAliases(node: StatementedNode): readonly ts.TypeAliasDeclaration[];
|
18 | export declare function getTypeAlias(node: StatementedNode, name: string): ts.TypeAliasDeclaration | undefined;
|
19 | export declare function getTypeAliasOrThrow(node: StatementedNode, name: string): ts.TypeAliasDeclaration;
|
20 | export declare function getFunctions(node: StatementedNode): readonly ts.FunctionDeclaration[];
|
21 | export declare function getFunction(node: StatementedNode, name: string): ts.FunctionDeclaration | undefined;
|
22 | export declare function getFunctionOrThrow(node: StatementedNode, name: string): ts.FunctionDeclaration;
|
23 | export declare function getEnums(node: StatementedNode): readonly ts.EnumDeclaration[];
|
24 | export declare function getEnum(node: StatementedNode, name: string): ts.EnumDeclaration | undefined;
|
25 | export declare function getEnumOrThrow(node: StatementedNode, name: string): ts.EnumDeclaration;
|
26 | export declare function getLabel(node: ts.BreakStatement | ts.ContinueStatement): ts.Identifier | undefined;
|
27 | export declare function getClauses(node: ts.CaseBlock): readonly ts.CaseOrDefaultClause[];
|
28 | export declare function getOnlyVariableDeclaration(node: ts.CatchClause): ts.VariableDeclaration | undefined;
|
29 | export declare function getBlock(node: ts.CatchClause): ts.Block;
|
30 | export declare function getStatement(node: ts.DoStatement | ts.ForStatement | ts.WhileStatement | ts.ForInOrOfStatement): ts.Statement;
|
31 | export declare function getInitializer(node: ts.ForInOrOfStatement): ts.VariableDeclarationList | ts.Expression;
|
32 | export declare function getInitializer(node: ts.ForStatement): ts.VariableDeclarationList | ts.Expression | undefined;
|
33 | export declare function getCondition(node: ts.ForStatement): ts.Expression | undefined;
|
34 | export declare function getIncrementor(node: ts.ForStatement): ts.Expression | undefined;
|
35 | export declare function getThenStatement(node: ts.IfStatement): ts.Statement;
|
36 | export declare function getElseStatement(node: ts.IfStatement): ts.Statement | undefined;
|
37 | export declare function getCaseBlock(node: ts.SwitchStatement): ts.CaseBlock;
|
38 | export declare function getCatchClause(node: ts.TryStatement): ts.CatchClause | undefined;
|
39 | export declare function getTryBlock(node: ts.TryStatement): ts.Block;
|
40 | export declare function getFinallyBlock(node: ts.TryStatement): ts.Block | undefined;
|