/* eslint-disable */ /* eslint-enable prettier/prettier */ /** * @file This file contains code related to rule options. */ import { type JSONSchema4 } from "json-schema"; /** * The schema for rule options. */ export declare const schema: Array; /** * This type is runtime type of options for rules of this plugin, as represented by JSON schema {@link schema}. */ export type Options = Readonly< Partial<{ extension: string; checkAlsoType: boolean; knownExtensions: ReadonlyArray; ignoreExtensions: ReadonlyArray; }> >; /** * The type to use when declaring {@link Options} for ESLint. */ export type ESLintOptions = Readonly<[Options]>; /** * The type after processing partial {@link Options} into full options. */ export type FullOptions = Readonly<{ [P in keyof Options]-?: Options[P]; }>; /** * The default options for the rules. */ export declare const defaultOptions: { readonly checkAlsoType: false; readonly knownExtensions: readonly [ ".js", ".ts", ".mjs", ".mts", ".cjs", ".cts", ]; readonly ignoreExtensions: readonly [".json"]; }; /** * Helper function to get full options from ESLint partial options. * @param filename The path of the file being processed. * @param param1 The options. * @returns Named options, using defaults if options partial object did not have element for that option. */ export declare const getOptions: ( filename: string, [opts]: readonly [ Readonly< Partial<{ extension: string; checkAlsoType: boolean; knownExtensions: ReadonlyArray; ignoreExtensions: ReadonlyArray; }> >, ], ) => FullOptions;