import { ruleCreator } from "../_internal/rule-creator.js";
const selector = "TSTupleType > TSUnionType:not([types.length=1])";
/**
 * Disallow union element types directly inside tuple elements.
 */
const rule = ruleCreator({
    create: (context) => ({
        [selector]: (node) => {
            context.report({
                messageId: "forbidden",
                node,
            });
        },
    }),
    defaultOptions: [],
    meta: {
        deprecated: false,
        docs: {
            deprecated: false,
            description: "disallow union element types directly inside tuple element positions.",
            frozen: false,
            recommended: false,
            url: "https://nick2bad4u.github.io/eslint-plugin-etc-misc/docs/rules/typescript-no-multi-type-tuples",
        },
        hasSuggestions: false,
        messages: {
            forbidden: "Avoid multi-type tuple elements; extract a named alias instead.",
        },
        schema: [],
        type: "suggestion",
    },
    name: "typescript/no-multi-type-tuples",
});
export default rule;
//# sourceMappingURL=typescript-no-multi-type-tuples.js.map