import type { PackageRootService } from '../services/stylelint-runtime/package-root.service.js'; import type { Stylelint } from './index.js'; export type StylelintModuleType = 'cjs' | 'esm'; export type LoadStylelintResult = { stylelint: Stylelint; moduleType: StylelintModuleType; }; type DynamicImportFn = (specifier: string) => Promise; /** * Loads the Stylelint module, supporting both CommonJS and ESM builds. * @param specifier Path or specifier that can be resolved by the provided require function. * @param requireFn Custom require implementation, defaults to the global require. * @param resolvedPath Optional pre-resolved module path used when falling back to ESM imports. */ export declare const loadStylelint: (packageRootFinder: PackageRootService, specifier: string, requireFn: NodeJS.Require, resolvedPath: string) => Promise; /** * Internal hooks used by the unit tests to control the dynamic import helper. */ export declare const __loadStylelintTestApi: { setDynamicImport(mock: DynamicImportFn): void; resetDynamicImport(): void; }; export {};