import type { Declaration, Type, Symbol as TSSymbol } from 'typescript'; import { Annotations } from './entity/annotation'; declare class AnnotationsReader { private ts; constructor(ts: typeof import('typescript')); getAnnotationsFromDeclaration(node: Declaration): Annotations | undefined; getAnnotationsFromType(type: Type): Annotations | undefined; getAnnotationsFromSymbol(symbol: TSSymbol): Annotations | undefined; /** * 部分特殊 tag(如 enum、type 等)会被解析为特殊的 tag 对象, * 这类对象上没有 comment 信息(被转化为了 typeExpression), * 因此需要通过解析 node 方式获取 */ private tryGetJsDocFromDeclaration; private parseJsDocTags; private parseJsDocTagValue; } export declare const getAnnotationReaderSingleton: (ts: typeof import('typescript')) => AnnotationsReader; export {};