import { type RunStore } from "../run-state/index.js";
import type { SeedWorkspaceConflict, SeedWorkspaceConflictKind, SeedWorkspaceIntent, SeedWorkspaceLease, SeedWorkspaceLeaseMode, SeedWorkspaceWorktreeMerge, SeedWorkspaceWorktreeMergeStatus } from "./types.js";
export declare function workspaceRoot(store: RunStore, runId: string): string;
export declare function workspaceIntentsPath(store: RunStore, runId: string): string;
export declare function workspaceLeasesPath(store: RunStore, runId: string): string;
export declare function workspaceConflictsPath(store: RunStore, runId: string): string;
export declare function workspaceDiffsPath(store: RunStore, runId: string): string;
export declare function workspaceMergesPath(store: RunStore, runId: string): string;
export declare function listWorkspaceIntents(store: RunStore, runId: string): Promise<SeedWorkspaceIntent[]>;
export declare function listWorkspaceLeases(store: RunStore, runId: string): Promise<SeedWorkspaceLease[]>;
export declare function listWorkspaceConflicts(store: RunStore, runId: string): Promise<SeedWorkspaceConflict[]>;
export declare function listWorkspaceWorktreeMerges(store: RunStore, runId: string): Promise<SeedWorkspaceWorktreeMerge[]>;
export declare function unresolvedWorkspaceConflicts(store: RunStore, runId: string): Promise<SeedWorkspaceConflict[]>;
export declare function declareWorkspaceIntent(store: RunStore, runId: string, input: {
    actor: string;
    paths: string[];
    mode: SeedWorkspaceLeaseMode;
    reason?: string;
}): Promise<SeedWorkspaceIntent>;
export declare function acquireWorkspaceLease(store: RunStore, runId: string, input: {
    owner: string;
    path: string;
    mode: SeedWorkspaceLeaseMode;
    task_id?: string;
    expected_base_hash?: string;
    actual_base_hash?: string;
    expires_at?: string;
}): Promise<{
    granted: boolean;
    lease: SeedWorkspaceLease;
    conflict?: SeedWorkspaceConflict;
}>;
export declare function refreshWorkspaceLease(store: RunStore, runId: string, leaseId: string, input?: {
    owner?: string;
    expires_at?: string;
}): Promise<SeedWorkspaceLease>;
export declare function releaseWorkspaceLease(store: RunStore, runId: string, leaseId: string, input?: {
    owner?: string;
}): Promise<SeedWorkspaceLease>;
export declare function recordWorkspaceConflict(store: RunStore, runId: string, input: {
    kind: SeedWorkspaceConflictKind;
    path: string;
    actors: string[];
    lease_ids?: string[];
    summary: string;
    expected_base_hash?: string;
    actual_base_hash?: string;
}): Promise<SeedWorkspaceConflict>;
export declare function resolveWorkspaceConflict(store: RunStore, runId: string, conflictId: string, input: {
    actor: string;
    resolution: string;
    evidence_refs?: string[];
    meeting_id?: string;
}): Promise<SeedWorkspaceConflict>;
export declare function recordWorkspaceWorktreeMerge(store: RunStore, runId: string, input: {
    actor: string;
    merge_owner?: string;
    subplan_id?: string;
    worktree_path: string;
    target_paths: string[];
    worktree_diff_ref: string;
    main_diff_ref?: string;
    lease_ids?: string[];
    rejected_paths?: string[];
    summary: string;
    evidence_refs?: string[];
    status?: SeedWorkspaceWorktreeMergeStatus;
}): Promise<SeedWorkspaceWorktreeMerge>;
export declare function ensureWorkspaceState(store: RunStore, runId: string): Promise<void>;
