import { type CodeActionCommand, type CodeFixAction, type FormatCodeSettings, type UserPreferences } from 'typescript'; import type { CodeFixCollection, CodeFixCollectionFilter, DiagnosticWithContext } from './types.js'; import type { Options as PrettierOptions } from 'prettier'; /** * Provides code fixes based on the Typescript's codefix collection. * @see https://github.com/microsoft/TypeScript/tree/main/src/services/codefixes */ export declare class TypescriptCodeFixCollection implements CodeFixCollection { hasPrettier: boolean | undefined; prettierConfigs: PrettierOptions | undefined; getFixesForDiagnostic(diagnostic: DiagnosticWithContext, filter: CodeFixCollectionFilter, formatCodeSettings?: FormatCodeSettings): CodeFixAction[]; protected getUserPreferences(): UserPreferences; protected suppressError(e: unknown, diagnostic: DiagnosticWithContext): void; protected isErrorSuppressed(diagnosticCode: number, errorMessage: string): boolean; protected makeCodeFixStrict(fix: CodeFixAction): CodeFixAction | undefined; protected makeCodeFixSafe(fix: CodeFixAction, diagnostic: DiagnosticWithContext): CodeFixAction; protected filterCodeFixes(fixes: readonly CodeFixAction[], filter: CodeFixCollectionFilter, diagnostic: DiagnosticWithContext): CodeFixAction[]; protected isCodeFixSupported(fix: CodeFixAction): boolean; } export declare function isInstallPackageCommand(fix: CodeFixAction): fix is CodeFixAction & { commands: CodeActionCommand; }; //# sourceMappingURL=typescript-codefix-collection.d.ts.map