/**
 * Edit Command - File editing with AI assistance
 */
import { Config } from '../utils/config.js';
import { Logger } from '../utils/logger.js';
interface EditOptions {
    instruction?: string;
    model: string;
    apply?: boolean;
}
interface FixOptions {
    type: string;
    apply: boolean;
}
export declare class EditCommand {
    private config;
    private logger;
    private api;
    private fileUtils;
    constructor(config: Config, logger: Logger);
    run(filePath: string, options: EditOptions): Promise<void>;
    fix(filePath: string, options: FixOptions): Promise<void>;
    private extractCode;
    /**
     * Detect and remove duplicated content in model output.
     * Models sometimes output the code twice or three times.
     * Applies iteratively until no further duplicates are found.
     */
    private deduplicateCode;
    /**
     * Append missing closing delimiters if dedup left brackets unbalanced.
     */
    private repairBrackets;
    private deduplicateOnce;
    private showDiffAndConfirm;
    private showFullDiff;
    private applyFix;
}
export {};
