import * as ts from "typescript"; /** * Returns the last leading TSDoc/JSDoc block attached to a declaration node. */ export declare function getLastLeadingDocCommentRange(node: ts.Node, sourceFile: ts.SourceFile): ts.CommentRange | null; /** * Resolves the direct subject type for declarations that can carry FormSpec * comment tags. */ export declare function getSubjectType(node: ts.Node, checker: ts.TypeChecker): ts.Type | undefined; /** * Resolves the enclosing host type for declarations nested under a containing * class, interface, or type literal. */ export declare function getHostType(node: ts.Node, checker: ts.TypeChecker): ts.Type | undefined; /** * Returns the type parameter names declared directly on the given node. */ export declare function getDeclarationTypeParameterNames(node: ts.Node): readonly string[]; /** * Returns the type parameter names visible in the current lexical scope. */ export declare function getVisibleTypeParameterNames(node: ts.Node): readonly string[]; interface DirectPropertyTarget { readonly name: string; readonly declaration: ts.PropertyDeclaration | ts.PropertySignature; readonly type: ts.Type; readonly optional: boolean; } /** * Returns the direct object properties declared on a supported declaration. */ export declare function getDirectPropertyTargets(node: ts.Node, checker: ts.TypeChecker): readonly DirectPropertyTarget[]; /** * Finds the smallest declaration whose leading doc comment contains the given * source offset. */ export declare function findDeclarationForCommentOffset(sourceFile: ts.SourceFile, offset: number): ts.Node | null; export {}; //# sourceMappingURL=source-bindings.d.ts.map