import { ruleCreator } from "../_internal/rule-creator.js";
const selector = "VariableDeclarator:not([id.typeAnnotation], [init.expression.properties.length=0]) > Identifier.id";
/**
 * Disallow complex inferred declarator types without annotation.
 */
const rule = ruleCreator({
    create: (context) => ({
        [selector]: (node) => {
            context.report({
                messageId: "forbidden",
                node,
            });
        },
    }),
    defaultOptions: [],
    meta: {
        deprecated: false,
        docs: {
            deprecated: false,
            description: "disallow complex inferred declarator types without explicit annotation.",
            frozen: false,
            recommended: false,
            url: "https://nick2bad4u.github.io/eslint-plugin-etc-misc/docs/rules/typescript-no-complex-declarator-type",
        },
        hasSuggestions: false,
        messages: {
            forbidden: "Add a type annotation (or `as const`) for this complex declarator.",
        },
        schema: [],
        type: "suggestion",
    },
    name: "typescript/no-complex-declarator-type",
});
export default rule;
//# sourceMappingURL=typescript-no-complex-declarator-type.js.map