/* eslint-disable */ /* eslint-enable prettier/prettier */ /** * @file This file contains code related to actual check performed by rule on a AST node for literal values. */ import type { TSESLint, TSESTree } from "@typescript-eslint/utils"; import type { FullOptions } from "./options"; import type { Context } from "./creator"; /** * Creates callback which will report an issue to `ctx` if the given {@link TSESTree.Literal} is relative path without correct extension. * @param ctx The {@link TSESLint.RuleContext} * @param messageId The ID of the message to use when reporting the error. * @param root2.extension The extension to use when auto-fixing. * @param root2.knownExtensions The known extension to check when auto-fixing. * @param root2.ignoreExtensions The extensions to not to trigger on. * @returns The callback to use to check the {@link TSESTree.Literal} nodes. */ declare const _default: ( ctx: Readonly< Omit< TSESLint.RuleContext< TMessageId, readonly [ Readonly< Partial<{ extension: string; checkAlsoType: boolean; knownExtensions: readonly string[]; ignoreExtensions: readonly string[]; }> >, ] >, "options" > >, messageId: TMessageId, { extension, knownExtensions, ignoreExtensions, }: Omit, ) => (node: TSESTree.Literal) => void; export default _default;