/** * @packageDocumentation * Shared composition helpers for import-aware report fix callbacks. */ import type { TSESLint } from "@typescript-eslint/utils"; import type { ImportFixIntent, ImportInsertionDecision } from "./import-fix-coordinator.js"; /** * Controls whether an autofix that must insert an import should also emit its * replacement in the same report callback. */ export type AutofixImportInsertionStrategy = "combined" | "separate-pass"; /** * Build replacement/import fixer arrays according to an import-insertion * coordination decision. * * @param options - Replacement and optional import-fix factories with the * import-insertion decision for this report callback. * * @returns Ordered fix array (`import`, then `replacement`) when applicable; * otherwise `null` when the fix must be suppressed. */ export declare const createImportAwareFixes: ({ autofixImportInsertionStrategy, createImportFix, createReplacementFix, fixer, importInsertionDecision, reportFixIntent, requiresImportInsertion, }: Readonly<{ autofixImportInsertionStrategy?: AutofixImportInsertionStrategy | undefined; createImportFix: (fixer: Readonly) => null | TSESLint.RuleFix; createReplacementFix: (fixer: Readonly) => TSESLint.RuleFix; fixer: Readonly; importInsertionDecision: ImportInsertionDecision; reportFixIntent?: ImportFixIntent | undefined; requiresImportInsertion: boolean; }>) => null | readonly TSESLint.RuleFix[]; //# sourceMappingURL=import-aware-fixes.d.ts.map