import { CodeAction, CodeActionParams } from "vscode-languageserver-protocol"; import { TextDocument } from "vscode-languageserver-textdocument"; import type { SymbolTable } from "../symbolTable.js"; import type { LintEdit, LintFinding } from "../linter/types.js"; /** Dedicated source-action kind for remove-on-save. Offered alongside the * generic SourceFixAll so either `editor.codeActionsOnSave` configuration * triggers the removal. */ export declare const REMOVE_UNUSED_IMPORTS_KIND = "source.removeUnusedImports"; /** Lint results already computed by the diagnostics pass, valid for the * document's current version. When present, getCodeActions skips its own * parse + lint. */ export type CachedLint = { findings: LintFinding[]; batchEdits: LintEdit[]; }; export declare function getCodeActions(params: CodeActionParams, doc: TextDocument, symbolTable: SymbolTable, cachedLint?: CachedLint): CodeAction[];