import { type TSESTree } from "@typescript-eslint/utils"; export type AngularClassDecorator = "Component" | "Directive" | "Injectable" | "NgModule" | "Pipe" | "Service"; /** * Checks if a `ClassDeclaration` has an Angular decorator and returns it. * * @example * ```typescript * const classDeclaration = findNearestAncestorOf( * node, * (node) => node.type === AST_NODE_TYPES.ClassDeclaration, * ); * * if (classDeclaration && findAngularClassDecorator(classDeclaration)) { * return true; * } * ``` */ export declare function findAngularClassDecorator({ decorators }: TSESTree.ClassDeclaration, allowedDecorators?: readonly AngularClassDecorator[]): AngularClassDecorator | undefined; export declare function isInAngularClass(node: TSESTree.Node, allowedDecorators?: readonly AngularClassDecorator[]): boolean;