import * as ts from 'typescript'; import { MemberDeclaration, ParameterDeclaration, TypeParameterDeclaration } from './named_declarations'; import { Node } from './node'; import { SourceFile } from './source_file'; import { KeywordType, LiteralType, Type } from './types'; /** * The conversion helpers may return undefined when the input TS node doesn't contain useful * information. This function is used to filter undefined out of arrays before serializing the * converted AST to JSON. */ export declare function filterUndefined(node: Node): boolean; /** * Helper function that converts Names into strings. */ export declare function convertName(node: ts.DeclarationName | ts.EntityName | ts.BindingName | ts.QualifiedName): string; /** * Helper function that converts Expressions into strings. */ export declare function convertExpression(node: ts.Expression): string; /** * Takes in a ts.SourceFile and returns a new SourceFile object that is compatible with Dart and can * be serialized to JSON. */ export declare function convertAST(node: ts.SourceFile): SourceFile; export declare function convertNode(node: ts.Node): Node | undefined; export declare function convertTypeParameter(typeParam: ts.TypeParameterDeclaration): TypeParameterDeclaration; export declare function convertTypeNode(node: ts.TypeNode): Type; export declare function convertKeywordTypeNode(node: ts.KeywordTypeNode): KeywordType; export declare function convertLiteralTypeNode(node: ts.LiteralTypeNode): LiteralType; export declare function convertMember(member: ts.ClassElement | ts.TypeElement): MemberDeclaration; export declare function convertParameter(parameter: ts.ParameterDeclaration): ParameterDeclaration;