export interface BrainMutationPreview {
    title: string;
    summary: string[];
    delta: Record<string, unknown>;
    proposedBrain: any;
}
export interface BrainMutationResult {
    success: boolean;
    historyId?: string;
    errors: string[];
}
export declare class TUIBrainService {
    private projectRoot;
    private brainPath;
    private syncer;
    private history;
    constructor(projectRoot?: string);
    exists(): Promise<boolean>;
    load(): Promise<any>;
    previewMutation(title: string, currentBrain: any, delta: Record<string, unknown>): Promise<BrainMutationPreview>;
    applyMutation(preview: BrainMutationPreview): Promise<BrainMutationResult>;
    private validateDelta;
    private validateBrain;
    private mergeBrain;
    private mergeById;
    private isPlainObject;
    private summarizeDelta;
}
//# sourceMappingURL=TUIBrainService.d.ts.map