import type { ESLint as ESLintClass } from "eslint"; /** * Shape of the dynamically-loaded `eslint` module used by this package. * * @remarks * Defined as a structural interface (rather than `typeof import("eslint")`) to * avoid inline `import()` type annotations that are disallowed by * `@typescript-eslint/consistent-type-imports`. */ export interface ESLintModule { readonly ESLint: { readonly outputFixes: typeof ESLintClass.outputFixes; new (options?: Readonly): ESLintClass; }; } /** * Loads ESLint at runtime and provides a friendly error when the peer * dependency is missing from the consuming project. */ type ESLintImporter = () => Promise; /** * Load the ESLint module using the provided importer function. * * @throws - When ESLint cannot be imported. */ export declare function loadESLintModule(importer?: ESLintImporter): Promise; export {}; //# sourceMappingURL=eslint-loader.d.ts.map