/**
 * GitTracker - Git operation audit and classification service.
 *
 * Classifies git commands into safe / mutating / destructive tiers,
 * maintains a bounded audit log, and publishes events to SharedStateBus.
 */
import type { SharedStateBus } from "./SharedStateBus.js";
export type GitClassification = "safe" | "mutating" | "destructive";
export interface GitOperation {
    id: string;
    command: string;
    classification: GitClassification;
    timestamp: number;
}
export declare class GitTracker {
    private log;
    private nextOpId;
    private bus;
    setBus(bus: SharedStateBus): void;
    /**
     * Classify a raw git command string without recording it.
     *
     * The command may optionally start with "git " — the classifier
     * strips the leading "git" token before matching sub-commands.
     */
    classifyCommand(command: string): GitClassification;
    /**
     * Classify, record, and publish a git operation.
     * Returns the created audit entry.
     */
    recordOperation(command: string): GitOperation;
    /** Return the full audit log (defensive copy). */
    getLog(): GitOperation[];
    /** Return only destructive operations from the audit log. */
    getDestructiveOps(): GitOperation[];
    /** Release all resources and clear internal state. */
    dispose(): Promise<void>;
}
