UNPKG

@ts-ast-parser/core

Version:

Reflects a simplified version of the TypeScript AST for generating documentation

30 lines 1.07 kB
import type { ReflectedRootNode } from '../reflected-node.js'; import type { ProjectContext } from '../project-context.js'; import type { Export } from '../models/export.js'; import { ExportKind } from '../models/export.js'; import { RootNodeType } from '../models/node.js'; import type ts from 'typescript'; /** * Represents the reflected node of a re-export declaration. * For example: `export * from './foo.js'` */ export declare class ReExportNode implements ReflectedRootNode<Export, ts.ExportDeclaration> { private readonly _node; private readonly _context; constructor(node: ts.ExportDeclaration, context: ProjectContext); getName(): string; getOriginalName(): string; getKind(): ExportKind; getNodeType(): RootNodeType; getContext(): ProjectContext; getModule(): string; getTSNode(): ts.ExportDeclaration; isTypeOnly(): boolean; /** * Serializes the reflected node * * @returns The reflected node as a serializable object */ serialize(): Export; } //# sourceMappingURL=re-export-node.d.ts.map