import type { BaseToolHandler } from "../../../../../agentCore/agent_executionEngine/basic_toolLayer/baseTools/baseToolDefinition.js";
import { createLspFormatRangePlan as createLspFormatRangePlanCore, type LspFormatRangeRequest } from "./core.js";
import { type LspLocateDefinitionRuntimeOptions, type LspRuntimeTextEdit } from "../_shared/runtime.js";
import { type LspFormatRangePracticeProviderName } from "./dependencies.js";
export * from "./core.js";
export type LspFormatRangeRuntimeOutput = {
    kind: "agentCore.basicTool.lsp.formatRange";
    target: {
        filePath: string;
        languageId?: string;
        range: NonNullable<LspFormatRangeRequest["range"]>;
    };
    edits: readonly LspRuntimeTextEdit[];
    dryRun: boolean;
    providerCalled: boolean;
    appliesChanges: false;
    permissionsRequired: readonly ["workspace:read", "workspace:edit", "lsp:read"];
    unsafeSideEffects: false;
};
export type LspFormatRangePreviewOutput = {
    kind: "agentCore.basicTool.lsp.formatRange.preview";
    preview: ReturnType<typeof createLspFormatRangePlanCore> extends infer Result ? Result extends {
        ok: true;
        plan: infer Plan;
    } ? Plan : never : never;
    dryRun: true;
    providerCalled: false;
    unsafeSideEffects: false;
};
export type LspFormatRangeBestPracticeOutput = LspFormatRangeRuntimeOutput | LspFormatRangePreviewOutput;
export type LspFormatRangeBestPracticeRequest = LspFormatRangeRequest & {
    runtime?: LspLocateDefinitionRuntimeOptions;
    preferredProvider?: LspFormatRangePracticeProviderName;
};
export declare const lspFormatRangeProviderPractices: readonly [{
    readonly providerName: "anthropic";
    readonly source: "Claude Code LSPTool practice informs code.lsp_formatRange; Praxis executes through the shared LSP runtime.";
    readonly directCliSupport: true;
    readonly sideEffectPolicy: "preview-only";
}, {
    readonly providerName: "openai";
    readonly source: "Codex CLI tool runtime boundary practice informs code.lsp_formatRange; Praxis executes through the shared LSP runtime.";
    readonly directCliSupport: true;
    readonly sideEffectPolicy: "preview-only";
}, {
    readonly providerName: "deepmind";
    readonly source: "Gemini CLI tool registry practice informs code.lsp_formatRange; Praxis executes through the shared LSP runtime.";
    readonly directCliSupport: true;
    readonly sideEffectPolicy: "preview-only";
}];
export declare const lspFormatRangeBestPracticeDescriptor: {
    readonly toolId: "code.lsp_formatRange";
    readonly bestPractice: "anthropic-host-executor-or-shared-stdio-lsp-runtime-preview-only";
    readonly sourcePriority: readonly ["cli", "agent-sdk", "api-sdk", "praxis-native"];
    readonly providerPractices: readonly [{
        readonly providerName: "anthropic";
        readonly source: "Claude Code LSPTool practice informs code.lsp_formatRange; Praxis executes through the shared LSP runtime.";
        readonly directCliSupport: true;
        readonly sideEffectPolicy: "preview-only";
    }, {
        readonly providerName: "openai";
        readonly source: "Codex CLI tool runtime boundary practice informs code.lsp_formatRange; Praxis executes through the shared LSP runtime.";
        readonly directCliSupport: true;
        readonly sideEffectPolicy: "preview-only";
    }, {
        readonly providerName: "deepmind";
        readonly source: "Gemini CLI tool registry practice informs code.lsp_formatRange; Praxis executes through the shared LSP runtime.";
        readonly directCliSupport: true;
        readonly sideEffectPolicy: "preview-only";
    }];
    readonly dependencies: readonly ["workspace.read", "lsp.server.forTargetLanguage", "node.child_process.stdioJsonRpc"];
};
export declare const lspFormatRangeBaseToolDefinition: import("../../../../../agentCore/agent_executionEngine/basic_toolLayer/baseTools/baseToolDefinition.js").BaseToolDefinition<LspFormatRangeBestPracticeRequest, LspFormatRangeBestPracticeOutput>;
export declare const lspFormatRangeHandler: BaseToolHandler<LspFormatRangeBestPracticeRequest, LspFormatRangeBestPracticeOutput>;
