import { z } from "zod";
export declare const runtimeWorkspaceFileStatusSchema: z.ZodEnum<{
    modified: "modified";
    added: "added";
    deleted: "deleted";
    renamed: "renamed";
    copied: "copied";
    untracked: "untracked";
    unknown: "unknown";
}>;
export type RuntimeWorkspaceFileStatus = z.infer<typeof runtimeWorkspaceFileStatusSchema>;
export declare const runtimeWorkspaceFileChangeSchema: z.ZodObject<{
    path: z.ZodString;
    previousPath: z.ZodOptional<z.ZodString>;
    status: z.ZodEnum<{
        modified: "modified";
        added: "added";
        deleted: "deleted";
        renamed: "renamed";
        copied: "copied";
        untracked: "untracked";
        unknown: "unknown";
    }>;
    additions: z.ZodNumber;
    deletions: z.ZodNumber;
    oldText: z.ZodNullable<z.ZodString>;
    newText: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
export type RuntimeWorkspaceFileChange = z.infer<typeof runtimeWorkspaceFileChangeSchema>;
export declare const runtimeWorkspaceChangesRequestSchema: z.ZodObject<{
    taskId: z.ZodString;
    baseRef: z.ZodString;
}, z.core.$strip>;
export type RuntimeWorkspaceChangesRequest = z.infer<typeof runtimeWorkspaceChangesRequestSchema>;
export declare const runtimeWorkspaceChangesResponseSchema: z.ZodObject<{
    repoRoot: z.ZodString;
    generatedAt: z.ZodNumber;
    files: z.ZodArray<z.ZodObject<{
        path: z.ZodString;
        previousPath: z.ZodOptional<z.ZodString>;
        status: z.ZodEnum<{
            modified: "modified";
            added: "added";
            deleted: "deleted";
            renamed: "renamed";
            copied: "copied";
            untracked: "untracked";
            unknown: "unknown";
        }>;
        additions: z.ZodNumber;
        deletions: z.ZodNumber;
        oldText: z.ZodNullable<z.ZodString>;
        newText: z.ZodNullable<z.ZodString>;
    }, z.core.$strip>>;
}, z.core.$strip>;
export type RuntimeWorkspaceChangesResponse = z.infer<typeof runtimeWorkspaceChangesResponseSchema>;
export declare const runtimeWorkspaceFileSearchRequestSchema: z.ZodObject<{
    query: z.ZodString;
    limit: z.ZodOptional<z.ZodNumber>;
}, z.core.$strip>;
export type RuntimeWorkspaceFileSearchRequest = z.infer<typeof runtimeWorkspaceFileSearchRequestSchema>;
export declare const runtimeWorkspaceFileSearchMatchSchema: z.ZodObject<{
    path: z.ZodString;
    name: z.ZodString;
    changed: z.ZodBoolean;
}, z.core.$strip>;
export type RuntimeWorkspaceFileSearchMatch = z.infer<typeof runtimeWorkspaceFileSearchMatchSchema>;
export declare const runtimeWorkspaceFileSearchResponseSchema: z.ZodObject<{
    query: z.ZodString;
    files: z.ZodArray<z.ZodObject<{
        path: z.ZodString;
        name: z.ZodString;
        changed: z.ZodBoolean;
    }, z.core.$strip>>;
}, z.core.$strip>;
export type RuntimeWorkspaceFileSearchResponse = z.infer<typeof runtimeWorkspaceFileSearchResponseSchema>;
export declare const runtimeSlashCommandDescriptionSchema: z.ZodObject<{
    name: z.ZodString;
    description: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
export type RuntimeSlashCommandDescription = z.infer<typeof runtimeSlashCommandDescriptionSchema>;
export declare const runtimeAgentIdSchema: z.ZodEnum<{
    claude: "claude";
    codex: "codex";
    gemini: "gemini";
    opencode: "opencode";
    droid: "droid";
    cline: "cline";
}>;
export type RuntimeAgentId = z.infer<typeof runtimeAgentIdSchema>;
export declare const runtimeSlashCommandsResponseSchema: z.ZodObject<{
    agentId: z.ZodNullable<z.ZodEnum<{
        claude: "claude";
        codex: "codex";
        gemini: "gemini";
        opencode: "opencode";
        droid: "droid";
        cline: "cline";
    }>>;
    commands: z.ZodArray<z.ZodObject<{
        name: z.ZodString;
        description: z.ZodNullable<z.ZodString>;
    }, z.core.$strip>>;
    error: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
export type RuntimeSlashCommandsResponse = z.infer<typeof runtimeSlashCommandsResponseSchema>;
export declare const runtimeBoardColumnIdSchema: z.ZodEnum<{
    backlog: "backlog";
    in_progress: "in_progress";
    review: "review";
    trash: "trash";
}>;
export type RuntimeBoardColumnId = z.infer<typeof runtimeBoardColumnIdSchema>;
export declare const runtimeTaskAutoReviewModeSchema: z.ZodEnum<{
    commit: "commit";
    pr: "pr";
    move_to_trash: "move_to_trash";
}>;
export type RuntimeTaskAutoReviewMode = z.infer<typeof runtimeTaskAutoReviewModeSchema>;
export declare const runtimeBoardCardSchema: z.ZodObject<{
    id: z.ZodString;
    prompt: z.ZodString;
    startInPlanMode: z.ZodBoolean;
    autoReviewEnabled: z.ZodOptional<z.ZodBoolean>;
    autoReviewMode: z.ZodOptional<z.ZodEnum<{
        commit: "commit";
        pr: "pr";
        move_to_trash: "move_to_trash";
    }>>;
    baseRef: z.ZodString;
    createdAt: z.ZodNumber;
    updatedAt: z.ZodNumber;
}, z.core.$strip>;
export type RuntimeBoardCard = z.infer<typeof runtimeBoardCardSchema>;
export declare const runtimeBoardColumnSchema: z.ZodObject<{
    id: z.ZodEnum<{
        backlog: "backlog";
        in_progress: "in_progress";
        review: "review";
        trash: "trash";
    }>;
    title: z.ZodString;
    cards: z.ZodArray<z.ZodObject<{
        id: z.ZodString;
        prompt: z.ZodString;
        startInPlanMode: z.ZodBoolean;
        autoReviewEnabled: z.ZodOptional<z.ZodBoolean>;
        autoReviewMode: z.ZodOptional<z.ZodEnum<{
            commit: "commit";
            pr: "pr";
            move_to_trash: "move_to_trash";
        }>>;
        baseRef: z.ZodString;
        createdAt: z.ZodNumber;
        updatedAt: z.ZodNumber;
    }, z.core.$strip>>;
}, z.core.$strip>;
export type RuntimeBoardColumn = z.infer<typeof runtimeBoardColumnSchema>;
export declare const runtimeBoardDependencySchema: z.ZodObject<{
    id: z.ZodString;
    fromTaskId: z.ZodString;
    toTaskId: z.ZodString;
    createdAt: z.ZodNumber;
}, z.core.$strip>;
export type RuntimeBoardDependency = z.infer<typeof runtimeBoardDependencySchema>;
export declare const runtimeBoardDataSchema: z.ZodObject<{
    columns: z.ZodArray<z.ZodObject<{
        id: z.ZodEnum<{
            backlog: "backlog";
            in_progress: "in_progress";
            review: "review";
            trash: "trash";
        }>;
        title: z.ZodString;
        cards: z.ZodArray<z.ZodObject<{
            id: z.ZodString;
            prompt: z.ZodString;
            startInPlanMode: z.ZodBoolean;
            autoReviewEnabled: z.ZodOptional<z.ZodBoolean>;
            autoReviewMode: z.ZodOptional<z.ZodEnum<{
                commit: "commit";
                pr: "pr";
                move_to_trash: "move_to_trash";
            }>>;
            baseRef: z.ZodString;
            createdAt: z.ZodNumber;
            updatedAt: z.ZodNumber;
        }, z.core.$strip>>;
    }, z.core.$strip>>;
    dependencies: z.ZodDefault<z.ZodArray<z.ZodObject<{
        id: z.ZodString;
        fromTaskId: z.ZodString;
        toTaskId: z.ZodString;
        createdAt: z.ZodNumber;
    }, z.core.$strip>>>;
}, z.core.$strip>;
export type RuntimeBoardData = z.infer<typeof runtimeBoardDataSchema>;
export declare const runtimeGitRepositoryInfoSchema: z.ZodObject<{
    currentBranch: z.ZodNullable<z.ZodString>;
    defaultBranch: z.ZodNullable<z.ZodString>;
    branches: z.ZodArray<z.ZodString>;
}, z.core.$strip>;
export type RuntimeGitRepositoryInfo = z.infer<typeof runtimeGitRepositoryInfoSchema>;
export declare const runtimeGitSyncActionSchema: z.ZodEnum<{
    fetch: "fetch";
    pull: "pull";
    push: "push";
}>;
export type RuntimeGitSyncAction = z.infer<typeof runtimeGitSyncActionSchema>;
export declare const runtimeGitSyncSummarySchema: z.ZodObject<{
    currentBranch: z.ZodNullable<z.ZodString>;
    upstreamBranch: z.ZodNullable<z.ZodString>;
    changedFiles: z.ZodNumber;
    additions: z.ZodNumber;
    deletions: z.ZodNumber;
    aheadCount: z.ZodNumber;
    behindCount: z.ZodNumber;
}, z.core.$strip>;
export type RuntimeGitSyncSummary = z.infer<typeof runtimeGitSyncSummarySchema>;
export declare const runtimeGitSummaryResponseSchema: z.ZodObject<{
    ok: z.ZodBoolean;
    summary: z.ZodObject<{
        currentBranch: z.ZodNullable<z.ZodString>;
        upstreamBranch: z.ZodNullable<z.ZodString>;
        changedFiles: z.ZodNumber;
        additions: z.ZodNumber;
        deletions: z.ZodNumber;
        aheadCount: z.ZodNumber;
        behindCount: z.ZodNumber;
    }, z.core.$strip>;
    error: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
export type RuntimeGitSummaryResponse = z.infer<typeof runtimeGitSummaryResponseSchema>;
export declare const runtimeGitSyncResponseSchema: z.ZodObject<{
    ok: z.ZodBoolean;
    action: z.ZodEnum<{
        fetch: "fetch";
        pull: "pull";
        push: "push";
    }>;
    summary: z.ZodObject<{
        currentBranch: z.ZodNullable<z.ZodString>;
        upstreamBranch: z.ZodNullable<z.ZodString>;
        changedFiles: z.ZodNumber;
        additions: z.ZodNumber;
        deletions: z.ZodNumber;
        aheadCount: z.ZodNumber;
        behindCount: z.ZodNumber;
    }, z.core.$strip>;
    output: z.ZodString;
    error: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
export type RuntimeGitSyncResponse = z.infer<typeof runtimeGitSyncResponseSchema>;
export declare const runtimeGitCheckoutRequestSchema: z.ZodObject<{
    branch: z.ZodString;
}, z.core.$strip>;
export type RuntimeGitCheckoutRequest = z.infer<typeof runtimeGitCheckoutRequestSchema>;
export declare const runtimeGitCheckoutResponseSchema: z.ZodObject<{
    ok: z.ZodBoolean;
    branch: z.ZodString;
    summary: z.ZodObject<{
        currentBranch: z.ZodNullable<z.ZodString>;
        upstreamBranch: z.ZodNullable<z.ZodString>;
        changedFiles: z.ZodNumber;
        additions: z.ZodNumber;
        deletions: z.ZodNumber;
        aheadCount: z.ZodNumber;
        behindCount: z.ZodNumber;
    }, z.core.$strip>;
    output: z.ZodString;
    error: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
export type RuntimeGitCheckoutResponse = z.infer<typeof runtimeGitCheckoutResponseSchema>;
export declare const runtimeGitDiscardResponseSchema: z.ZodObject<{
    ok: z.ZodBoolean;
    summary: z.ZodObject<{
        currentBranch: z.ZodNullable<z.ZodString>;
        upstreamBranch: z.ZodNullable<z.ZodString>;
        changedFiles: z.ZodNumber;
        additions: z.ZodNumber;
        deletions: z.ZodNumber;
        aheadCount: z.ZodNumber;
        behindCount: z.ZodNumber;
    }, z.core.$strip>;
    output: z.ZodString;
    error: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
export type RuntimeGitDiscardResponse = z.infer<typeof runtimeGitDiscardResponseSchema>;
export declare const runtimeTaskSessionStateSchema: z.ZodEnum<{
    idle: "idle";
    running: "running";
    awaiting_review: "awaiting_review";
    failed: "failed";
    interrupted: "interrupted";
}>;
export type RuntimeTaskSessionState = z.infer<typeof runtimeTaskSessionStateSchema>;
export declare const runtimeTaskSessionReviewReasonSchema: z.ZodNullable<z.ZodEnum<{
    error: "error";
    interrupted: "interrupted";
    attention: "attention";
    exit: "exit";
    hook: "hook";
}>>;
export type RuntimeTaskSessionReviewReason = z.infer<typeof runtimeTaskSessionReviewReasonSchema>;
export declare const runtimeTaskHookActivitySchema: z.ZodObject<{
    activityText: z.ZodDefault<z.ZodNullable<z.ZodString>>;
    toolName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
    finalMessage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
    hookEventName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
    notificationType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
    source: z.ZodDefault<z.ZodNullable<z.ZodString>>;
}, z.core.$strip>;
export type RuntimeTaskHookActivity = z.infer<typeof runtimeTaskHookActivitySchema>;
export declare const runtimeTaskSessionSummarySchema: z.ZodObject<{
    taskId: z.ZodString;
    state: z.ZodEnum<{
        idle: "idle";
        running: "running";
        awaiting_review: "awaiting_review";
        failed: "failed";
        interrupted: "interrupted";
    }>;
    agentId: z.ZodNullable<z.ZodEnum<{
        claude: "claude";
        codex: "codex";
        gemini: "gemini";
        opencode: "opencode";
        droid: "droid";
        cline: "cline";
    }>>;
    workspacePath: z.ZodNullable<z.ZodString>;
    pid: z.ZodNullable<z.ZodNumber>;
    startedAt: z.ZodNullable<z.ZodNumber>;
    updatedAt: z.ZodNumber;
    lastOutputAt: z.ZodNullable<z.ZodNumber>;
    reviewReason: z.ZodNullable<z.ZodEnum<{
        error: "error";
        interrupted: "interrupted";
        attention: "attention";
        exit: "exit";
        hook: "hook";
    }>>;
    exitCode: z.ZodNullable<z.ZodNumber>;
    lastHookAt: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
    latestHookActivity: z.ZodDefault<z.ZodNullable<z.ZodObject<{
        activityText: z.ZodDefault<z.ZodNullable<z.ZodString>>;
        toolName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
        finalMessage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
        hookEventName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
        notificationType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
        source: z.ZodDefault<z.ZodNullable<z.ZodString>>;
    }, z.core.$strip>>>;
}, z.core.$strip>;
export type RuntimeTaskSessionSummary = z.infer<typeof runtimeTaskSessionSummarySchema>;
export declare const runtimeWorkspaceStateResponseSchema: z.ZodObject<{
    repoPath: z.ZodString;
    statePath: z.ZodString;
    git: z.ZodObject<{
        currentBranch: z.ZodNullable<z.ZodString>;
        defaultBranch: z.ZodNullable<z.ZodString>;
        branches: z.ZodArray<z.ZodString>;
    }, z.core.$strip>;
    board: z.ZodObject<{
        columns: z.ZodArray<z.ZodObject<{
            id: z.ZodEnum<{
                backlog: "backlog";
                in_progress: "in_progress";
                review: "review";
                trash: "trash";
            }>;
            title: z.ZodString;
            cards: z.ZodArray<z.ZodObject<{
                id: z.ZodString;
                prompt: z.ZodString;
                startInPlanMode: z.ZodBoolean;
                autoReviewEnabled: z.ZodOptional<z.ZodBoolean>;
                autoReviewMode: z.ZodOptional<z.ZodEnum<{
                    commit: "commit";
                    pr: "pr";
                    move_to_trash: "move_to_trash";
                }>>;
                baseRef: z.ZodString;
                createdAt: z.ZodNumber;
                updatedAt: z.ZodNumber;
            }, z.core.$strip>>;
        }, z.core.$strip>>;
        dependencies: z.ZodDefault<z.ZodArray<z.ZodObject<{
            id: z.ZodString;
            fromTaskId: z.ZodString;
            toTaskId: z.ZodString;
            createdAt: z.ZodNumber;
        }, z.core.$strip>>>;
    }, z.core.$strip>;
    sessions: z.ZodRecord<z.ZodString, z.ZodObject<{
        taskId: z.ZodString;
        state: z.ZodEnum<{
            idle: "idle";
            running: "running";
            awaiting_review: "awaiting_review";
            failed: "failed";
            interrupted: "interrupted";
        }>;
        agentId: z.ZodNullable<z.ZodEnum<{
            claude: "claude";
            codex: "codex";
            gemini: "gemini";
            opencode: "opencode";
            droid: "droid";
            cline: "cline";
        }>>;
        workspacePath: z.ZodNullable<z.ZodString>;
        pid: z.ZodNullable<z.ZodNumber>;
        startedAt: z.ZodNullable<z.ZodNumber>;
        updatedAt: z.ZodNumber;
        lastOutputAt: z.ZodNullable<z.ZodNumber>;
        reviewReason: z.ZodNullable<z.ZodEnum<{
            error: "error";
            interrupted: "interrupted";
            attention: "attention";
            exit: "exit";
            hook: "hook";
        }>>;
        exitCode: z.ZodNullable<z.ZodNumber>;
        lastHookAt: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
        latestHookActivity: z.ZodDefault<z.ZodNullable<z.ZodObject<{
            activityText: z.ZodDefault<z.ZodNullable<z.ZodString>>;
            toolName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
            finalMessage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
            hookEventName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
            notificationType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
            source: z.ZodDefault<z.ZodNullable<z.ZodString>>;
        }, z.core.$strip>>>;
    }, z.core.$strip>>;
    revision: z.ZodNumber;
}, z.core.$strip>;
export type RuntimeWorkspaceStateResponse = z.infer<typeof runtimeWorkspaceStateResponseSchema>;
export declare const runtimeWorkspaceStateSaveRequestSchema: z.ZodObject<{
    board: z.ZodObject<{
        columns: z.ZodArray<z.ZodObject<{
            id: z.ZodEnum<{
                backlog: "backlog";
                in_progress: "in_progress";
                review: "review";
                trash: "trash";
            }>;
            title: z.ZodString;
            cards: z.ZodArray<z.ZodObject<{
                id: z.ZodString;
                prompt: z.ZodString;
                startInPlanMode: z.ZodBoolean;
                autoReviewEnabled: z.ZodOptional<z.ZodBoolean>;
                autoReviewMode: z.ZodOptional<z.ZodEnum<{
                    commit: "commit";
                    pr: "pr";
                    move_to_trash: "move_to_trash";
                }>>;
                baseRef: z.ZodString;
                createdAt: z.ZodNumber;
                updatedAt: z.ZodNumber;
            }, z.core.$strip>>;
        }, z.core.$strip>>;
        dependencies: z.ZodDefault<z.ZodArray<z.ZodObject<{
            id: z.ZodString;
            fromTaskId: z.ZodString;
            toTaskId: z.ZodString;
            createdAt: z.ZodNumber;
        }, z.core.$strip>>>;
    }, z.core.$strip>;
    sessions: z.ZodRecord<z.ZodString, z.ZodObject<{
        taskId: z.ZodString;
        state: z.ZodEnum<{
            idle: "idle";
            running: "running";
            awaiting_review: "awaiting_review";
            failed: "failed";
            interrupted: "interrupted";
        }>;
        agentId: z.ZodNullable<z.ZodEnum<{
            claude: "claude";
            codex: "codex";
            gemini: "gemini";
            opencode: "opencode";
            droid: "droid";
            cline: "cline";
        }>>;
        workspacePath: z.ZodNullable<z.ZodString>;
        pid: z.ZodNullable<z.ZodNumber>;
        startedAt: z.ZodNullable<z.ZodNumber>;
        updatedAt: z.ZodNumber;
        lastOutputAt: z.ZodNullable<z.ZodNumber>;
        reviewReason: z.ZodNullable<z.ZodEnum<{
            error: "error";
            interrupted: "interrupted";
            attention: "attention";
            exit: "exit";
            hook: "hook";
        }>>;
        exitCode: z.ZodNullable<z.ZodNumber>;
        lastHookAt: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
        latestHookActivity: z.ZodDefault<z.ZodNullable<z.ZodObject<{
            activityText: z.ZodDefault<z.ZodNullable<z.ZodString>>;
            toolName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
            finalMessage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
            hookEventName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
            notificationType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
            source: z.ZodDefault<z.ZodNullable<z.ZodString>>;
        }, z.core.$strip>>>;
    }, z.core.$strip>>;
    expectedRevision: z.ZodOptional<z.ZodNumber>;
}, z.core.$strip>;
export type RuntimeWorkspaceStateSaveRequest = z.infer<typeof runtimeWorkspaceStateSaveRequestSchema>;
export declare const runtimeWorkspaceStateConflictResponseSchema: z.ZodObject<{
    error: z.ZodString;
    currentRevision: z.ZodNumber;
}, z.core.$strip>;
export type RuntimeWorkspaceStateConflictResponse = z.infer<typeof runtimeWorkspaceStateConflictResponseSchema>;
export declare const runtimeProjectTaskCountsSchema: z.ZodObject<{
    backlog: z.ZodNumber;
    in_progress: z.ZodNumber;
    review: z.ZodNumber;
    trash: z.ZodNumber;
}, z.core.$strip>;
export type RuntimeProjectTaskCounts = z.infer<typeof runtimeProjectTaskCountsSchema>;
export declare const runtimeProjectSummarySchema: z.ZodObject<{
    id: z.ZodString;
    path: z.ZodString;
    name: z.ZodString;
    taskCounts: z.ZodObject<{
        backlog: z.ZodNumber;
        in_progress: z.ZodNumber;
        review: z.ZodNumber;
        trash: z.ZodNumber;
    }, z.core.$strip>;
}, z.core.$strip>;
export type RuntimeProjectSummary = z.infer<typeof runtimeProjectSummarySchema>;
export declare const runtimeTaskWorkspaceMetadataSchema: z.ZodObject<{
    taskId: z.ZodString;
    path: z.ZodString;
    exists: z.ZodBoolean;
    baseRef: z.ZodString;
    branch: z.ZodNullable<z.ZodString>;
    isDetached: z.ZodBoolean;
    headCommit: z.ZodNullable<z.ZodString>;
    changedFiles: z.ZodNullable<z.ZodNumber>;
    additions: z.ZodNullable<z.ZodNumber>;
    deletions: z.ZodNullable<z.ZodNumber>;
    stateVersion: z.ZodNumber;
}, z.core.$strip>;
export type RuntimeTaskWorkspaceMetadata = z.infer<typeof runtimeTaskWorkspaceMetadataSchema>;
export declare const runtimeWorkspaceMetadataSchema: z.ZodObject<{
    homeGitSummary: z.ZodNullable<z.ZodObject<{
        currentBranch: z.ZodNullable<z.ZodString>;
        upstreamBranch: z.ZodNullable<z.ZodString>;
        changedFiles: z.ZodNumber;
        additions: z.ZodNumber;
        deletions: z.ZodNumber;
        aheadCount: z.ZodNumber;
        behindCount: z.ZodNumber;
    }, z.core.$strip>>;
    homeGitStateVersion: z.ZodNumber;
    taskWorkspaces: z.ZodArray<z.ZodObject<{
        taskId: z.ZodString;
        path: z.ZodString;
        exists: z.ZodBoolean;
        baseRef: z.ZodString;
        branch: z.ZodNullable<z.ZodString>;
        isDetached: z.ZodBoolean;
        headCommit: z.ZodNullable<z.ZodString>;
        changedFiles: z.ZodNullable<z.ZodNumber>;
        additions: z.ZodNullable<z.ZodNumber>;
        deletions: z.ZodNullable<z.ZodNumber>;
        stateVersion: z.ZodNumber;
    }, z.core.$strip>>;
}, z.core.$strip>;
export type RuntimeWorkspaceMetadata = z.infer<typeof runtimeWorkspaceMetadataSchema>;
export declare const runtimeStateStreamSnapshotMessageSchema: z.ZodObject<{
    type: z.ZodLiteral<"snapshot">;
    currentProjectId: z.ZodNullable<z.ZodString>;
    projects: z.ZodArray<z.ZodObject<{
        id: z.ZodString;
        path: z.ZodString;
        name: z.ZodString;
        taskCounts: z.ZodObject<{
            backlog: z.ZodNumber;
            in_progress: z.ZodNumber;
            review: z.ZodNumber;
            trash: z.ZodNumber;
        }, z.core.$strip>;
    }, z.core.$strip>>;
    workspaceState: z.ZodNullable<z.ZodObject<{
        repoPath: z.ZodString;
        statePath: z.ZodString;
        git: z.ZodObject<{
            currentBranch: z.ZodNullable<z.ZodString>;
            defaultBranch: z.ZodNullable<z.ZodString>;
            branches: z.ZodArray<z.ZodString>;
        }, z.core.$strip>;
        board: z.ZodObject<{
            columns: z.ZodArray<z.ZodObject<{
                id: z.ZodEnum<{
                    backlog: "backlog";
                    in_progress: "in_progress";
                    review: "review";
                    trash: "trash";
                }>;
                title: z.ZodString;
                cards: z.ZodArray<z.ZodObject<{
                    id: z.ZodString;
                    prompt: z.ZodString;
                    startInPlanMode: z.ZodBoolean;
                    autoReviewEnabled: z.ZodOptional<z.ZodBoolean>;
                    autoReviewMode: z.ZodOptional<z.ZodEnum<{
                        commit: "commit";
                        pr: "pr";
                        move_to_trash: "move_to_trash";
                    }>>;
                    baseRef: z.ZodString;
                    createdAt: z.ZodNumber;
                    updatedAt: z.ZodNumber;
                }, z.core.$strip>>;
            }, z.core.$strip>>;
            dependencies: z.ZodDefault<z.ZodArray<z.ZodObject<{
                id: z.ZodString;
                fromTaskId: z.ZodString;
                toTaskId: z.ZodString;
                createdAt: z.ZodNumber;
            }, z.core.$strip>>>;
        }, z.core.$strip>;
        sessions: z.ZodRecord<z.ZodString, z.ZodObject<{
            taskId: z.ZodString;
            state: z.ZodEnum<{
                idle: "idle";
                running: "running";
                awaiting_review: "awaiting_review";
                failed: "failed";
                interrupted: "interrupted";
            }>;
            agentId: z.ZodNullable<z.ZodEnum<{
                claude: "claude";
                codex: "codex";
                gemini: "gemini";
                opencode: "opencode";
                droid: "droid";
                cline: "cline";
            }>>;
            workspacePath: z.ZodNullable<z.ZodString>;
            pid: z.ZodNullable<z.ZodNumber>;
            startedAt: z.ZodNullable<z.ZodNumber>;
            updatedAt: z.ZodNumber;
            lastOutputAt: z.ZodNullable<z.ZodNumber>;
            reviewReason: z.ZodNullable<z.ZodEnum<{
                error: "error";
                interrupted: "interrupted";
                attention: "attention";
                exit: "exit";
                hook: "hook";
            }>>;
            exitCode: z.ZodNullable<z.ZodNumber>;
            lastHookAt: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
            latestHookActivity: z.ZodDefault<z.ZodNullable<z.ZodObject<{
                activityText: z.ZodDefault<z.ZodNullable<z.ZodString>>;
                toolName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
                finalMessage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
                hookEventName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
                notificationType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
                source: z.ZodDefault<z.ZodNullable<z.ZodString>>;
            }, z.core.$strip>>>;
        }, z.core.$strip>>;
        revision: z.ZodNumber;
    }, z.core.$strip>>;
    workspaceMetadata: z.ZodNullable<z.ZodObject<{
        homeGitSummary: z.ZodNullable<z.ZodObject<{
            currentBranch: z.ZodNullable<z.ZodString>;
            upstreamBranch: z.ZodNullable<z.ZodString>;
            changedFiles: z.ZodNumber;
            additions: z.ZodNumber;
            deletions: z.ZodNumber;
            aheadCount: z.ZodNumber;
            behindCount: z.ZodNumber;
        }, z.core.$strip>>;
        homeGitStateVersion: z.ZodNumber;
        taskWorkspaces: z.ZodArray<z.ZodObject<{
            taskId: z.ZodString;
            path: z.ZodString;
            exists: z.ZodBoolean;
            baseRef: z.ZodString;
            branch: z.ZodNullable<z.ZodString>;
            isDetached: z.ZodBoolean;
            headCommit: z.ZodNullable<z.ZodString>;
            changedFiles: z.ZodNullable<z.ZodNumber>;
            additions: z.ZodNullable<z.ZodNumber>;
            deletions: z.ZodNullable<z.ZodNumber>;
            stateVersion: z.ZodNumber;
        }, z.core.$strip>>;
    }, z.core.$strip>>;
}, z.core.$strip>;
export type RuntimeStateStreamSnapshotMessage = z.infer<typeof runtimeStateStreamSnapshotMessageSchema>;
export declare const runtimeStateStreamWorkspaceStateMessageSchema: z.ZodObject<{
    type: z.ZodLiteral<"workspace_state_updated">;
    workspaceId: z.ZodString;
    workspaceState: z.ZodObject<{
        repoPath: z.ZodString;
        statePath: z.ZodString;
        git: z.ZodObject<{
            currentBranch: z.ZodNullable<z.ZodString>;
            defaultBranch: z.ZodNullable<z.ZodString>;
            branches: z.ZodArray<z.ZodString>;
        }, z.core.$strip>;
        board: z.ZodObject<{
            columns: z.ZodArray<z.ZodObject<{
                id: z.ZodEnum<{
                    backlog: "backlog";
                    in_progress: "in_progress";
                    review: "review";
                    trash: "trash";
                }>;
                title: z.ZodString;
                cards: z.ZodArray<z.ZodObject<{
                    id: z.ZodString;
                    prompt: z.ZodString;
                    startInPlanMode: z.ZodBoolean;
                    autoReviewEnabled: z.ZodOptional<z.ZodBoolean>;
                    autoReviewMode: z.ZodOptional<z.ZodEnum<{
                        commit: "commit";
                        pr: "pr";
                        move_to_trash: "move_to_trash";
                    }>>;
                    baseRef: z.ZodString;
                    createdAt: z.ZodNumber;
                    updatedAt: z.ZodNumber;
                }, z.core.$strip>>;
            }, z.core.$strip>>;
            dependencies: z.ZodDefault<z.ZodArray<z.ZodObject<{
                id: z.ZodString;
                fromTaskId: z.ZodString;
                toTaskId: z.ZodString;
                createdAt: z.ZodNumber;
            }, z.core.$strip>>>;
        }, z.core.$strip>;
        sessions: z.ZodRecord<z.ZodString, z.ZodObject<{
            taskId: z.ZodString;
            state: z.ZodEnum<{
                idle: "idle";
                running: "running";
                awaiting_review: "awaiting_review";
                failed: "failed";
                interrupted: "interrupted";
            }>;
            agentId: z.ZodNullable<z.ZodEnum<{
                claude: "claude";
                codex: "codex";
                gemini: "gemini";
                opencode: "opencode";
                droid: "droid";
                cline: "cline";
            }>>;
            workspacePath: z.ZodNullable<z.ZodString>;
            pid: z.ZodNullable<z.ZodNumber>;
            startedAt: z.ZodNullable<z.ZodNumber>;
            updatedAt: z.ZodNumber;
            lastOutputAt: z.ZodNullable<z.ZodNumber>;
            reviewReason: z.ZodNullable<z.ZodEnum<{
                error: "error";
                interrupted: "interrupted";
                attention: "attention";
                exit: "exit";
                hook: "hook";
            }>>;
            exitCode: z.ZodNullable<z.ZodNumber>;
            lastHookAt: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
            latestHookActivity: z.ZodDefault<z.ZodNullable<z.ZodObject<{
                activityText: z.ZodDefault<z.ZodNullable<z.ZodString>>;
                toolName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
                finalMessage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
                hookEventName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
                notificationType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
                source: z.ZodDefault<z.ZodNullable<z.ZodString>>;
            }, z.core.$strip>>>;
        }, z.core.$strip>>;
        revision: z.ZodNumber;
    }, z.core.$strip>;
}, z.core.$strip>;
export type RuntimeStateStreamWorkspaceStateMessage = z.infer<typeof runtimeStateStreamWorkspaceStateMessageSchema>;
export declare const runtimeStateStreamTaskSessionsMessageSchema: z.ZodObject<{
    type: z.ZodLiteral<"task_sessions_updated">;
    workspaceId: z.ZodString;
    summaries: z.ZodArray<z.ZodObject<{
        taskId: z.ZodString;
        state: z.ZodEnum<{
            idle: "idle";
            running: "running";
            awaiting_review: "awaiting_review";
            failed: "failed";
            interrupted: "interrupted";
        }>;
        agentId: z.ZodNullable<z.ZodEnum<{
            claude: "claude";
            codex: "codex";
            gemini: "gemini";
            opencode: "opencode";
            droid: "droid";
            cline: "cline";
        }>>;
        workspacePath: z.ZodNullable<z.ZodString>;
        pid: z.ZodNullable<z.ZodNumber>;
        startedAt: z.ZodNullable<z.ZodNumber>;
        updatedAt: z.ZodNumber;
        lastOutputAt: z.ZodNullable<z.ZodNumber>;
        reviewReason: z.ZodNullable<z.ZodEnum<{
            error: "error";
            interrupted: "interrupted";
            attention: "attention";
            exit: "exit";
            hook: "hook";
        }>>;
        exitCode: z.ZodNullable<z.ZodNumber>;
        lastHookAt: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
        latestHookActivity: z.ZodDefault<z.ZodNullable<z.ZodObject<{
            activityText: z.ZodDefault<z.ZodNullable<z.ZodString>>;
            toolName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
            finalMessage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
            hookEventName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
            notificationType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
            source: z.ZodDefault<z.ZodNullable<z.ZodString>>;
        }, z.core.$strip>>>;
    }, z.core.$strip>>;
}, z.core.$strip>;
export type RuntimeStateStreamTaskSessionsMessage = z.infer<typeof runtimeStateStreamTaskSessionsMessageSchema>;
export declare const runtimeStateStreamProjectsMessageSchema: z.ZodObject<{
    type: z.ZodLiteral<"projects_updated">;
    currentProjectId: z.ZodNullable<z.ZodString>;
    projects: z.ZodArray<z.ZodObject<{
        id: z.ZodString;
        path: z.ZodString;
        name: z.ZodString;
        taskCounts: z.ZodObject<{
            backlog: z.ZodNumber;
            in_progress: z.ZodNumber;
            review: z.ZodNumber;
            trash: z.ZodNumber;
        }, z.core.$strip>;
    }, z.core.$strip>>;
}, z.core.$strip>;
export type RuntimeStateStreamProjectsMessage = z.infer<typeof runtimeStateStreamProjectsMessageSchema>;
export declare const runtimeStateStreamWorkspaceMetadataMessageSchema: z.ZodObject<{
    type: z.ZodLiteral<"workspace_metadata_updated">;
    workspaceId: z.ZodString;
    workspaceMetadata: z.ZodObject<{
        homeGitSummary: z.ZodNullable<z.ZodObject<{
            currentBranch: z.ZodNullable<z.ZodString>;
            upstreamBranch: z.ZodNullable<z.ZodString>;
            changedFiles: z.ZodNumber;
            additions: z.ZodNumber;
            deletions: z.ZodNumber;
            aheadCount: z.ZodNumber;
            behindCount: z.ZodNumber;
        }, z.core.$strip>>;
        homeGitStateVersion: z.ZodNumber;
        taskWorkspaces: z.ZodArray<z.ZodObject<{
            taskId: z.ZodString;
            path: z.ZodString;
            exists: z.ZodBoolean;
            baseRef: z.ZodString;
            branch: z.ZodNullable<z.ZodString>;
            isDetached: z.ZodBoolean;
            headCommit: z.ZodNullable<z.ZodString>;
            changedFiles: z.ZodNullable<z.ZodNumber>;
            additions: z.ZodNullable<z.ZodNumber>;
            deletions: z.ZodNullable<z.ZodNumber>;
            stateVersion: z.ZodNumber;
        }, z.core.$strip>>;
    }, z.core.$strip>;
}, z.core.$strip>;
export type RuntimeStateStreamWorkspaceMetadataMessage = z.infer<typeof runtimeStateStreamWorkspaceMetadataMessageSchema>;
export declare const runtimeStateStreamTaskReadyForReviewMessageSchema: z.ZodObject<{
    type: z.ZodLiteral<"task_ready_for_review">;
    workspaceId: z.ZodString;
    taskId: z.ZodString;
    triggeredAt: z.ZodNumber;
}, z.core.$strip>;
export type RuntimeStateStreamTaskReadyForReviewMessage = z.infer<typeof runtimeStateStreamTaskReadyForReviewMessageSchema>;
export declare const runtimeStateStreamErrorMessageSchema: z.ZodObject<{
    type: z.ZodLiteral<"error">;
    message: z.ZodString;
}, z.core.$strip>;
export type RuntimeStateStreamErrorMessage = z.infer<typeof runtimeStateStreamErrorMessageSchema>;
export declare const runtimeStateStreamMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
    type: z.ZodLiteral<"snapshot">;
    currentProjectId: z.ZodNullable<z.ZodString>;
    projects: z.ZodArray<z.ZodObject<{
        id: z.ZodString;
        path: z.ZodString;
        name: z.ZodString;
        taskCounts: z.ZodObject<{
            backlog: z.ZodNumber;
            in_progress: z.ZodNumber;
            review: z.ZodNumber;
            trash: z.ZodNumber;
        }, z.core.$strip>;
    }, z.core.$strip>>;
    workspaceState: z.ZodNullable<z.ZodObject<{
        repoPath: z.ZodString;
        statePath: z.ZodString;
        git: z.ZodObject<{
            currentBranch: z.ZodNullable<z.ZodString>;
            defaultBranch: z.ZodNullable<z.ZodString>;
            branches: z.ZodArray<z.ZodString>;
        }, z.core.$strip>;
        board: z.ZodObject<{
            columns: z.ZodArray<z.ZodObject<{
                id: z.ZodEnum<{
                    backlog: "backlog";
                    in_progress: "in_progress";
                    review: "review";
                    trash: "trash";
                }>;
                title: z.ZodString;
                cards: z.ZodArray<z.ZodObject<{
                    id: z.ZodString;
                    prompt: z.ZodString;
                    startInPlanMode: z.ZodBoolean;
                    autoReviewEnabled: z.ZodOptional<z.ZodBoolean>;
                    autoReviewMode: z.ZodOptional<z.ZodEnum<{
                        commit: "commit";
                        pr: "pr";
                        move_to_trash: "move_to_trash";
                    }>>;
                    baseRef: z.ZodString;
                    createdAt: z.ZodNumber;
                    updatedAt: z.ZodNumber;
                }, z.core.$strip>>;
            }, z.core.$strip>>;
            dependencies: z.ZodDefault<z.ZodArray<z.ZodObject<{
                id: z.ZodString;
                fromTaskId: z.ZodString;
                toTaskId: z.ZodString;
                createdAt: z.ZodNumber;
            }, z.core.$strip>>>;
        }, z.core.$strip>;
        sessions: z.ZodRecord<z.ZodString, z.ZodObject<{
            taskId: z.ZodString;
            state: z.ZodEnum<{
                idle: "idle";
                running: "running";
                awaiting_review: "awaiting_review";
                failed: "failed";
                interrupted: "interrupted";
            }>;
            agentId: z.ZodNullable<z.ZodEnum<{
                claude: "claude";
                codex: "codex";
                gemini: "gemini";
                opencode: "opencode";
                droid: "droid";
                cline: "cline";
            }>>;
            workspacePath: z.ZodNullable<z.ZodString>;
            pid: z.ZodNullable<z.ZodNumber>;
            startedAt: z.ZodNullable<z.ZodNumber>;
            updatedAt: z.ZodNumber;
            lastOutputAt: z.ZodNullable<z.ZodNumber>;
            reviewReason: z.ZodNullable<z.ZodEnum<{
                error: "error";
                interrupted: "interrupted";
                attention: "attention";
                exit: "exit";
                hook: "hook";
            }>>;
            exitCode: z.ZodNullable<z.ZodNumber>;
            lastHookAt: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
            latestHookActivity: z.ZodDefault<z.ZodNullable<z.ZodObject<{
                activityText: z.ZodDefault<z.ZodNullable<z.ZodString>>;
                toolName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
                finalMessage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
                hookEventName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
                notificationType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
                source: z.ZodDefault<z.ZodNullable<z.ZodString>>;
            }, z.core.$strip>>>;
        }, z.core.$strip>>;
        revision: z.ZodNumber;
    }, z.core.$strip>>;
    workspaceMetadata: z.ZodNullable<z.ZodObject<{
        homeGitSummary: z.ZodNullable<z.ZodObject<{
            currentBranch: z.ZodNullable<z.ZodString>;
            upstreamBranch: z.ZodNullable<z.ZodString>;
            changedFiles: z.ZodNumber;
            additions: z.ZodNumber;
            deletions: z.ZodNumber;
            aheadCount: z.ZodNumber;
            behindCount: z.ZodNumber;
        }, z.core.$strip>>;
        homeGitStateVersion: z.ZodNumber;
        taskWorkspaces: z.ZodArray<z.ZodObject<{
            taskId: z.ZodString;
            path: z.ZodString;
            exists: z.ZodBoolean;
            baseRef: z.ZodString;
            branch: z.ZodNullable<z.ZodString>;
            isDetached: z.ZodBoolean;
            headCommit: z.ZodNullable<z.ZodString>;
            changedFiles: z.ZodNullable<z.ZodNumber>;
            additions: z.ZodNullable<z.ZodNumber>;
            deletions: z.ZodNullable<z.ZodNumber>;
            stateVersion: z.ZodNumber;
        }, z.core.$strip>>;
    }, z.core.$strip>>;
}, z.core.$strip>, z.ZodObject<{
    type: z.ZodLiteral<"workspace_state_updated">;
    workspaceId: z.ZodString;
    workspaceState: z.ZodObject<{
        repoPath: z.ZodString;
        statePath: z.ZodString;
        git: z.ZodObject<{
            currentBranch: z.ZodNullable<z.ZodString>;
            defaultBranch: z.ZodNullable<z.ZodString>;
            branches: z.ZodArray<z.ZodString>;
        }, z.core.$strip>;
        board: z.ZodObject<{
            columns: z.ZodArray<z.ZodObject<{
                id: z.ZodEnum<{
                    backlog: "backlog";
                    in_progress: "in_progress";
                    review: "review";
                    trash: "trash";
                }>;
                title: z.ZodString;
                cards: z.ZodArray<z.ZodObject<{
                    id: z.ZodString;
                    prompt: z.ZodString;
                    startInPlanMode: z.ZodBoolean;
                    autoReviewEnabled: z.ZodOptional<z.ZodBoolean>;
                    autoReviewMode: z.ZodOptional<z.ZodEnum<{
                        commit: "commit";
                        pr: "pr";
                        move_to_trash: "move_to_trash";
                    }>>;
                    baseRef: z.ZodString;
                    createdAt: z.ZodNumber;
                    updatedAt: z.ZodNumber;
                }, z.core.$strip>>;
            }, z.core.$strip>>;
            dependencies: z.ZodDefault<z.ZodArray<z.ZodObject<{
                id: z.ZodString;
                fromTaskId: z.ZodString;
                toTaskId: z.ZodString;
                createdAt: z.ZodNumber;
            }, z.core.$strip>>>;
        }, z.core.$strip>;
        sessions: z.ZodRecord<z.ZodString, z.ZodObject<{
            taskId: z.ZodString;
            state: z.ZodEnum<{
                idle: "idle";
                running: "running";
                awaiting_review: "awaiting_review";
                failed: "failed";
                interrupted: "interrupted";
            }>;
            agentId: z.ZodNullable<z.ZodEnum<{
                claude: "claude";
                codex: "codex";
                gemini: "gemini";
                opencode: "opencode";
                droid: "droid";
                cline: "cline";
            }>>;
            workspacePath: z.ZodNullable<z.ZodString>;
            pid: z.ZodNullable<z.ZodNumber>;
            startedAt: z.ZodNullable<z.ZodNumber>;
            updatedAt: z.ZodNumber;
            lastOutputAt: z.ZodNullable<z.ZodNumber>;
            reviewReason: z.ZodNullable<z.ZodEnum<{
                error: "error";
                interrupted: "interrupted";
                attention: "attention";
                exit: "exit";
                hook: "hook";
            }>>;
            exitCode: z.ZodNullable<z.ZodNumber>;
            lastHookAt: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
            latestHookActivity: z.ZodDefault<z.ZodNullable<z.ZodObject<{
                activityText: z.ZodDefault<z.ZodNullable<z.ZodString>>;
                toolName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
                finalMessage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
                hookEventName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
                notificationType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
                source: z.ZodDefault<z.ZodNullable<z.ZodString>>;
            }, z.core.$strip>>>;
        }, z.core.$strip>>;
        revision: z.ZodNumber;
    }, z.core.$strip>;
}, z.core.$strip>, z.ZodObject<{
    type: z.ZodLiteral<"task_sessions_updated">;
    workspaceId: z.ZodString;
    summaries: z.ZodArray<z.ZodObject<{
        taskId: z.ZodString;
        state: z.ZodEnum<{
            idle: "idle";
            running: "running";
            awaiting_review: "awaiting_review";
            failed: "failed";
            interrupted: "interrupted";
        }>;
        agentId: z.ZodNullable<z.ZodEnum<{
            claude: "claude";
            codex: "codex";
            gemini: "gemini";
            opencode: "opencode";
            droid: "droid";
            cline: "cline";
        }>>;
        workspacePath: z.ZodNullable<z.ZodString>;
        pid: z.ZodNullable<z.ZodNumber>;
        startedAt: z.ZodNullable<z.ZodNumber>;
        updatedAt: z.ZodNumber;
        lastOutputAt: z.ZodNullable<z.ZodNumber>;
        reviewReason: z.ZodNullable<z.ZodEnum<{
            error: "error";
            interrupted: "interrupted";
            attention: "attention";
            exit: "exit";
            hook: "hook";
        }>>;
        exitCode: z.ZodNullable<z.ZodNumber>;
        lastHookAt: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
        latestHookActivity: z.ZodDefault<z.ZodNullable<z.ZodObject<{
            activityText: z.ZodDefault<z.ZodNullable<z.ZodString>>;
            toolName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
            finalMessage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
            hookEventName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
            notificationType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
            source: z.ZodDefault<z.ZodNullable<z.ZodString>>;
        }, z.core.$strip>>>;
    }, z.core.$strip>>;
}, z.core.$strip>, z.ZodObject<{
    type: z.ZodLiteral<"projects_updated">;
    currentProjectId: z.ZodNullable<z.ZodString>;
    projects: z.ZodArray<z.ZodObject<{
        id: z.ZodString;
        path: z.ZodString;
        name: z.ZodString;
        taskCounts: z.ZodObject<{
            backlog: z.ZodNumber;
            in_progress: z.ZodNumber;
            review: z.ZodNumber;
            trash: z.ZodNumber;
        }, z.core.$strip>;
    }, z.core.$strip>>;
}, z.core.$strip>, z.ZodObject<{
    type: z.ZodLiteral<"workspace_metadata_updated">;
    workspaceId: z.ZodString;
    workspaceMetadata: z.ZodObject<{
        homeGitSummary: z.ZodNullable<z.ZodObject<{
            currentBranch: z.ZodNullable<z.ZodString>;
            upstreamBranch: z.ZodNullable<z.ZodString>;
            changedFiles: z.ZodNumber;
            additions: z.ZodNumber;
            deletions: z.ZodNumber;
            aheadCount: z.ZodNumber;
            behindCount: z.ZodNumber;
        }, z.core.$strip>>;
        homeGitStateVersion: z.ZodNumber;
        taskWorkspaces: z.ZodArray<z.ZodObject<{
            taskId: z.ZodString;
            path: z.ZodString;
            exists: z.ZodBoolean;
            baseRef: z.ZodString;
            branch: z.ZodNullable<z.ZodString>;
            isDetached: z.ZodBoolean;
            headCommit: z.ZodNullable<z.ZodString>;
            changedFiles: z.ZodNullable<z.ZodNumber>;
            additions: z.ZodNullable<z.ZodNumber>;
            deletions: z.ZodNullable<z.ZodNumber>;
            stateVersion: z.ZodNumber;
        }, z.core.$strip>>;
    }, z.core.$strip>;
}, z.core.$strip>, z.ZodObject<{
    type: z.ZodLiteral<"task_ready_for_review">;
    workspaceId: z.ZodString;
    taskId: z.ZodString;
    triggeredAt: z.ZodNumber;
}, z.core.$strip>, z.ZodObject<{
    type: z.ZodLiteral<"error">;
    message: z.ZodString;
}, z.core.$strip>], "type">;
export type RuntimeStateStreamMessage = z.infer<typeof runtimeStateStreamMessageSchema>;
export declare const runtimeProjectsResponseSchema: z.ZodObject<{
    currentProjectId: z.ZodNullable<z.ZodString>;
    projects: z.ZodArray<z.ZodObject<{
        id: z.ZodString;
        path: z.ZodString;
        name: z.ZodString;
        taskCounts: z.ZodObject<{
            backlog: z.ZodNumber;
            in_progress: z.ZodNumber;
            review: z.ZodNumber;
            trash: z.ZodNumber;
        }, z.core.$strip>;
    }, z.core.$strip>>;
}, z.core.$strip>;
export type RuntimeProjectsResponse = z.infer<typeof runtimeProjectsResponseSchema>;
export declare const runtimeProjectAddRequestSchema: z.ZodObject<{
    path: z.ZodString;
}, z.core.$strip>;
export type RuntimeProjectAddRequest = z.infer<typeof runtimeProjectAddRequestSchema>;
export declare const runtimeProjectAddResponseSchema: z.ZodObject<{
    ok: z.ZodBoolean;
    project: z.ZodNullable<z.ZodObject<{
        id: z.ZodString;
        path: z.ZodString;
        name: z.ZodString;
        taskCounts: z.ZodObject<{
            backlog: z.ZodNumber;
            in_progress: z.ZodNumber;
            review: z.ZodNumber;
            trash: z.ZodNumber;
        }, z.core.$strip>;
    }, z.core.$strip>>;
    error: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
export type RuntimeProjectAddResponse = z.infer<typeof runtimeProjectAddResponseSchema>;
export declare const runtimeProjectDirectoryPickerResponseSchema: z.ZodObject<{
    ok: z.ZodBoolean;
    path: z.ZodNullable<z.ZodString>;
    error: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
export type RuntimeProjectDirectoryPickerResponse = z.infer<typeof runtimeProjectDirectoryPickerResponseSchema>;
export declare const runtimeProjectRemoveRequestSchema: z.ZodObject<{
    projectId: z.ZodString;
}, z.core.$strip>;
export type RuntimeProjectRemoveRequest = z.infer<typeof runtimeProjectRemoveRequestSchema>;
export declare const runtimeProjectRemoveResponseSchema: z.ZodObject<{
    ok: z.ZodBoolean;
    error: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
export type RuntimeProjectRemoveResponse = z.infer<typeof runtimeProjectRemoveResponseSchema>;
export declare const runtimeWorktreeEnsureRequestSchema: z.ZodObject<{
    taskId: z.ZodString;
    baseRef: z.ZodString;
}, z.core.$strip>;
export type RuntimeWorktreeEnsureRequest = z.infer<typeof runtimeWorktreeEnsureRequestSchema>;
export declare const runtimeWorktreeEnsureResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
    ok: z.ZodLiteral<true>;
    path: z.ZodString;
    baseRef: z.ZodString;
    baseCommit: z.ZodString;
    error: z.ZodOptional<z.ZodString>;
}, z.core.$strip>, z.ZodObject<{
    ok: z.ZodLiteral<false>;
    path: z.ZodNull;
    baseRef: z.ZodString;
    baseCommit: z.ZodNull;
    error: z.ZodOptional<z.ZodString>;
}, z.core.$strip>]>;
export type RuntimeWorktreeEnsureResponse = z.infer<typeof runtimeWorktreeEnsureResponseSchema>;
export declare const runtimeWorktreeDeleteRequestSchema: z.ZodObject<{
    taskId: z.ZodString;
}, z.core.$strip>;
export type RuntimeWorktreeDeleteRequest = z.infer<typeof runtimeWorktreeDeleteRequestSchema>;
export declare const runtimeWorktreeDeleteResponseSchema: z.ZodObject<{
    ok: z.ZodBoolean;
    removed: z.ZodBoolean;
    error: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
export type RuntimeWorktreeDeleteResponse = z.infer<typeof runtimeWorktreeDeleteResponseSchema>;
export declare const runtimeTaskWorkspaceInfoRequestSchema: z.ZodObject<{
    taskId: z.ZodString;
    baseRef: z.ZodString;
}, z.core.$strip>;
export type RuntimeTaskWorkspaceInfoRequest = z.infer<typeof runtimeTaskWorkspaceInfoRequestSchema>;
export declare const runtimeTaskWorkspaceInfoResponseSchema: z.ZodObject<{
    taskId: z.ZodString;
    path: z.ZodString;
    exists: z.ZodBoolean;
    baseRef: z.ZodString;
    branch: z.ZodNullable<z.ZodString>;
    isDetached: z.ZodBoolean;
    headCommit: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
export type RuntimeTaskWorkspaceInfoResponse = z.infer<typeof runtimeTaskWorkspaceInfoResponseSchema>;
export declare const runtimeProjectShortcutSchema: z.ZodObject<{
    label: z.ZodString;
    command: z.ZodString;
    icon: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
export type RuntimeProjectShortcut = z.infer<typeof runtimeProjectShortcutSchema>;
export declare const runtimeCommandRunRequestSchema: z.ZodObject<{
    command: z.ZodString;
}, z.core.$strip>;
export type RuntimeCommandRunRequest = z.infer<typeof runtimeCommandRunRequestSchema>;
export declare const runtimeCommandRunResponseSchema: z.ZodObject<{
    exitCode: z.ZodNumber;
    stdout: z.ZodString;
    stderr: z.ZodString;
    combinedOutput: z.ZodString;
    durationMs: z.ZodNumber;
}, z.core.$strip>;
export type RuntimeCommandRunResponse = z.infer<typeof runtimeCommandRunResponseSchema>;
export declare const runtimeAgentDefinitionSchema: z.ZodObject<{
    id: z.ZodEnum<{
        claude: "claude";
        codex: "codex";
        gemini: "gemini";
        opencode: "opencode";
        droid: "droid";
        cline: "cline";
    }>;
    label: z.ZodString;
    binary: z.ZodString;
    command: z.ZodString;
    defaultArgs: z.ZodArray<z.ZodString>;
    installed: z.ZodBoolean;
    configured: z.ZodBoolean;
}, z.core.$strip>;
export type RuntimeAgentDefinition = z.infer<typeof runtimeAgentDefinitionSchema>;
export declare const runtimeConfigResponseSchema: z.ZodObject<{
    selectedAgentId: z.ZodEnum<{
        claude: "claude";
        codex: "codex";
        gemini: "gemini";
        opencode: "opencode";
        droid: "droid";
        cline: "cline";
    }>;
    selectedShortcutLabel: z.ZodNullable<z.ZodString>;
    agentAutonomousModeEnabled: z.ZodBoolean;
    effectiveCommand: z.ZodNullable<z.ZodString>;
    globalConfigPath: z.ZodString;
    projectConfigPath: z.ZodString;
    readyForReviewNotificationsEnabled: z.ZodBoolean;
    detectedCommands: z.ZodArray<z.ZodString>;
    agents: z.ZodArray<z.ZodObject<{
        id: z.ZodEnum<{
            claude: "claude";
            codex: "codex";
            gemini: "gemini";
            opencode: "opencode";
            droid: "droid";
            cline: "cline";
        }>;
        label: z.ZodString;
        binary: z.ZodString;
        command: z.ZodString;
        defaultArgs: z.ZodArray<z.ZodString>;
        installed: z.ZodBoolean;
        configured: z.ZodBoolean;
    }, z.core.$strip>>;
    shortcuts: z.ZodArray<z.ZodObject<{
        label: z.ZodString;
        command: z.ZodString;
        icon: z.ZodOptional<z.ZodString>;
    }, z.core.$strip>>;
    commitPromptTemplate: z.ZodString;
    openPrPromptTemplate: z.ZodString;
    commitPromptTemplateDefault: z.ZodString;
    openPrPromptTemplateDefault: z.ZodString;
}, z.core.$strip>;
export type RuntimeConfigResponse = z.infer<typeof runtimeConfigResponseSchema>;
export declare const runtimeConfigSaveRequestSchema: z.ZodObject<{
    selectedAgentId: z.ZodOptional<z.ZodEnum<{
        claude: "claude";
        codex: "codex";
        gemini: "gemini";
        opencode: "opencode";
        droid: "droid";
        cline: "cline";
    }>>;
    selectedShortcutLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    agentAutonomousModeEnabled: z.ZodOptional<z.ZodBoolean>;
    shortcuts: z.ZodOptional<z.ZodArray<z.ZodObject<{
        label: z.ZodString;
        command: z.ZodString;
        icon: z.ZodOptional<z.ZodString>;
    }, z.core.$strip>>>;
    readyForReviewNotificationsEnabled: z.ZodOptional<z.ZodBoolean>;
    commitPromptTemplate: z.ZodOptional<z.ZodString>;
    openPrPromptTemplate: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
export type RuntimeConfigSaveRequest = z.infer<typeof runtimeConfigSaveRequestSchema>;
export declare const runtimeTaskSessionStartRequestSchema: z.ZodObject<{
    taskId: z.ZodString;
    prompt: z.ZodString;
    startInPlanMode: z.ZodOptional<z.ZodBoolean>;
    resumeFromTrash: z.ZodOptional<z.ZodBoolean>;
    baseRef: z.ZodString;
    cols: z.ZodOptional<z.ZodNumber>;
    rows: z.ZodOptional<z.ZodNumber>;
}, z.core.$strip>;
export type RuntimeTaskSessionStartRequest = z.infer<typeof runtimeTaskSessionStartRequestSchema>;
export declare const runtimeTaskSessionStartResponseSchema: z.ZodObject<{
    ok: z.ZodBoolean;
    summary: z.ZodNullable<z.ZodObject<{
        taskId: z.ZodString;
        state: z.ZodEnum<{
            idle: "idle";
            running: "running";
            awaiting_review: "awaiting_review";
            failed: "failed";
            interrupted: "interrupted";
        }>;
        agentId: z.ZodNullable<z.ZodEnum<{
            claude: "claude";
            codex: "codex";
            gemini: "gemini";
            opencode: "opencode";
            droid: "droid";
            cline: "cline";
        }>>;
        workspacePath: z.ZodNullable<z.ZodString>;
        pid: z.ZodNullable<z.ZodNumber>;
        startedAt: z.ZodNullable<z.ZodNumber>;
        updatedAt: z.ZodNumber;
        lastOutputAt: z.ZodNullable<z.ZodNumber>;
        reviewReason: z.ZodNullable<z.ZodEnum<{
            error: "error";
            interrupted: "interrupted";
            attention: "attention";
            exit: "exit";
            hook: "hook";
        }>>;
        exitCode: z.ZodNullable<z.ZodNumber>;
        lastHookAt: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
        latestHookActivity: z.ZodDefault<z.ZodNullable<z.ZodObject<{
            activityText: z.ZodDefault<z.ZodNullable<z.ZodString>>;
            toolName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
            finalMessage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
            hookEventName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
            notificationType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
            source: z.ZodDefault<z.ZodNullable<z.ZodString>>;
        }, z.core.$strip>>>;
    }, z.core.$strip>>;
    error: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
export type RuntimeTaskSessionStartResponse = z.infer<typeof runtimeTaskSessionStartResponseSchema>;
export declare const runtimeTaskSessionStopRequestSchema: z.ZodObject<{
    taskId: z.ZodString;
}, z.core.$strip>;
export type RuntimeTaskSessionStopRequest = z.infer<typeof runtimeTaskSessionStopRequestSchema>;
export declare const runtimeTaskSessionStopResponseSchema: z.ZodObject<{
    ok: z.ZodBoolean;
    summary: z.ZodNullable<z.ZodObject<{
        taskId: z.ZodString;
        state: z.ZodEnum<{
            idle: "idle";
            running: "running";
            awaiting_review: "awaiting_review";
            failed: "failed";
            interrupted: "interrupted";
        }>;
        agentId: z.ZodNullable<z.ZodEnum<{
            claude: "claude";
            codex: "codex";
            gemini: "gemini";
            opencode: "opencode";
            droid: "droid";
            cline: "cline";
        }>>;
        workspacePath: z.ZodNullable<z.ZodString>;
        pid: z.ZodNullable<z.ZodNumber>;
        startedAt: z.ZodNullable<z.ZodNumber>;
        updatedAt: z.ZodNumber;
        lastOutputAt: z.ZodNullable<z.ZodNumber>;
        reviewReason: z.ZodNullable<z.ZodEnum<{
            error: "error";
            interrupted: "interrupted";
            attention: "attention";
            exit: "exit";
            hook: "hook";
        }>>;
        exitCode: z.ZodNullable<z.ZodNumber>;
        lastHookAt: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
        latestHookActivity: z.ZodDefault<z.ZodNullable<z.ZodObject<{
            activityText: z.ZodDefault<z.ZodNullable<z.ZodString>>;
            toolName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
            finalMessage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
            hookEventName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
            notificationType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
            source: z.ZodDefault<z.ZodNullable<z.ZodString>>;
        }, z.core.$strip>>>;
    }, z.core.$strip>>;
    error: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
export type RuntimeTaskSessionStopResponse = z.infer<typeof runtimeTaskSessionStopResponseSchema>;
export declare const runtimeTaskSessionInputRequestSchema: z.ZodObject<{
    taskId: z.ZodString;
    text: z.ZodString;
    appendNewline: z.ZodOptional<z.ZodBoolean>;
}, z.core.$strip>;
export type RuntimeTaskSessionInputRequest = z.infer<typeof runtimeTaskSessionInputRequestSchema>;
export declare const runtimeTaskSessionInputResponseSchema: z.ZodObject<{
    ok: z.ZodBoolean;
    summary: z.ZodNullable<z.ZodObject<{
        taskId: z.ZodString;
        state: z.ZodEnum<{
            idle: "idle";
            running: "running";
            awaiting_review: "awaiting_review";
            failed: "failed";
            interrupted: "interrupted";
        }>;
        agentId: z.ZodNullable<z.ZodEnum<{
            claude: "claude";
            codex: "codex";
            gemini: "gemini";
            opencode: "opencode";
            droid: "droid";
            cline: "cline";
        }>>;
        workspacePath: z.ZodNullable<z.ZodString>;
        pid: z.ZodNullable<z.ZodNumber>;
        startedAt: z.ZodNullable<z.ZodNumber>;
        updatedAt: z.ZodNumber;
        lastOutputAt: z.ZodNullable<z.ZodNumber>;
        reviewReason: z.ZodNullable<z.ZodEnum<{
            error: "error";
            interrupted: "interrupted";
            attention: "attention";
            exit: "exit";
            hook: "hook";
        }>>;
        exitCode: z.ZodNullable<z.ZodNumber>;
        lastHookAt: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
        latestHookActivity: z.ZodDefault<z.ZodNullable<z.ZodObject<{
            activityText: z.ZodDefault<z.ZodNullable<z.ZodString>>;
            toolName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
            finalMessage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
            hookEventName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
            notificationType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
            source: z.ZodDefault<z.ZodNullable<z.ZodString>>;
        }, z.core.$strip>>>;
    }, z.core.$strip>>;
    error: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
export type RuntimeTaskSessionInputResponse = z.infer<typeof runtimeTaskSessionInputResponseSchema>;
export declare const runtimeShellSessionStartRequestSchema: z.ZodObject<{
    taskId: z.ZodString;
    cols: z.ZodOptional<z.ZodNumber>;
    rows: z.ZodOptional<z.ZodNumber>;
    workspaceTaskId: z.ZodOptional<z.ZodString>;
    baseRef: z.ZodString;
}, z.core.$strip>;
export type RuntimeShellSessionStartRequest = z.infer<typeof runtimeShellSessionStartRequestSchema>;
export declare const runtimeShellSessionStartResponseSchema: z.ZodObject<{
    ok: z.ZodBoolean;
    summary: z.ZodNullable<z.ZodObject<{
        taskId: z.ZodString;
        state: z.ZodEnum<{
            idle: "idle";
            running: "running";
            awaiting_review: "awaiting_review";
            failed: "failed";
            interrupted: "interrupted";
        }>;
        agentId: z.ZodNullable<z.ZodEnum<{
            claude: "claude";
            codex: "codex";
            gemini: "gemini";
            opencode: "opencode";
            droid: "droid";
            cline: "cline";
        }>>;
        workspacePath: z.ZodNullable<z.ZodString>;
        pid: z.ZodNullable<z.ZodNumber>;
        startedAt: z.ZodNullable<z.ZodNumber>;
        updatedAt: z.ZodNumber;
        lastOutputAt: z.ZodNullable<z.ZodNumber>;
        reviewReason: z.ZodNullable<z.ZodEnum<{
            error: "error";
            interrupted: "interrupted";
            attention: "attention";
            exit: "exit";
            hook: "hook";
        }>>;
        exitCode: z.ZodNullable<z.ZodNumber>;
        lastHookAt: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
        latestHookActivity: z.ZodDefault<z.ZodNullable<z.ZodObject<{
            activityText: z.ZodDefault<z.ZodNullable<z.ZodString>>;
            toolName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
            finalMessage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
            hookEventName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
            notificationType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
            source: z.ZodDefault<z.ZodNullable<z.ZodString>>;
        }, z.core.$strip>>>;
    }, z.core.$strip>>;
    shellBinary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    error: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
export type RuntimeShellSessionStartResponse = z.infer<typeof runtimeShellSessionStartResponseSchema>;
export declare const runtimeTerminalWsResizeMessageSchema: z.ZodObject<{
    type: z.ZodLiteral<"resize">;
    cols: z.ZodNumber;
    rows: z.ZodNumber;
    pixelWidth: z.ZodOptional<z.ZodNumber>;
    pixelHeight: z.ZodOptional<z.ZodNumber>;
}, z.core.$strip>;
export type RuntimeTerminalWsResizeMessage = z.infer<typeof runtimeTerminalWsResizeMessageSchema>;
export declare const runtimeTerminalWsStopMessageSchema: z.ZodObject<{
    type: z.ZodLiteral<"stop">;
}, z.core.$strip>;
export type RuntimeTerminalWsStopMessage = z.infer<typeof runtimeTerminalWsStopMessageSchema>;
export declare const runtimeTerminalWsClientMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
    type: z.ZodLiteral<"resize">;
    cols: z.ZodNumber;
    rows: z.ZodNumber;
    pixelWidth: z.ZodOptional<z.ZodNumber>;
    pixelHeight: z.ZodOptional<z.ZodNumber>;
}, z.core.$strip>, z.ZodObject<{
    type: z.ZodLiteral<"stop">;
}, z.core.$strip>], "type">;
export type RuntimeTerminalWsClientMessage = z.infer<typeof runtimeTerminalWsClientMessageSchema>;
export declare const runtimeTerminalWsStateMessageSchema: z.ZodObject<{
    type: z.ZodLiteral<"state">;
    summary: z.ZodObject<{
        taskId: z.ZodString;
        state: z.ZodEnum<{
            idle: "idle";
            running: "running";
            awaiting_review: "awaiting_review";
            failed: "failed";
            interrupted: "interrupted";
        }>;
        agentId: z.ZodNullable<z.ZodEnum<{
            claude: "claude";
            codex: "codex";
            gemini: "gemini";
            opencode: "opencode";
            droid: "droid";
            cline: "cline";
        }>>;
        workspacePath: z.ZodNullable<z.ZodString>;
        pid: z.ZodNullable<z.ZodNumber>;
        startedAt: z.ZodNullable<z.ZodNumber>;
        updatedAt: z.ZodNumber;
        lastOutputAt: z.ZodNullable<z.ZodNumber>;
        reviewReason: z.ZodNullable<z.ZodEnum<{
            error: "error";
            interrupted: "interrupted";
            attention: "attention";
            exit: "exit";
            hook: "hook";
        }>>;
        exitCode: z.ZodNullable<z.ZodNumber>;
        lastHookAt: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
        latestHookActivity: z.ZodDefault<z.ZodNullable<z.ZodObject<{
            activityText: z.ZodDefault<z.ZodNullable<z.ZodString>>;
            toolName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
            finalMessage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
            hookEventName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
            notificationType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
            source: z.ZodDefault<z.ZodNullable<z.ZodString>>;
        }, z.core.$strip>>>;
    }, z.core.$strip>;
}, z.core.$strip>;
export type RuntimeTerminalWsStateMessage = z.infer<typeof runtimeTerminalWsStateMessageSchema>;
export declare const runtimeTerminalWsErrorMessageSchema: z.ZodObject<{
    type: z.ZodLiteral<"error">;
    message: z.ZodString;
}, z.core.$strip>;
export type RuntimeTerminalWsErrorMessage = z.infer<typeof runtimeTerminalWsErrorMessageSchema>;
export declare const runtimeTerminalWsExitMessageSchema: z.ZodObject<{
    type: z.ZodLiteral<"exit">;
    code: z.ZodNullable<z.ZodNumber>;
}, z.core.$strip>;
export type RuntimeTerminalWsExitMessage = z.infer<typeof runtimeTerminalWsExitMessageSchema>;
export declare const runtimeTerminalWsServerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
    type: z.ZodLiteral<"state">;
    summary: z.ZodObject<{
        taskId: z.ZodString;
        state: z.ZodEnum<{
            idle: "idle";
            running: "running";
            awaiting_review: "awaiting_review";
            failed: "failed";
            interrupted: "interrupted";
        }>;
        agentId: z.ZodNullable<z.ZodEnum<{
            claude: "claude";
            codex: "codex";
            gemini: "gemini";
            opencode: "opencode";
            droid: "droid";
            cline: "cline";
        }>>;
        workspacePath: z.ZodNullable<z.ZodString>;
        pid: z.ZodNullable<z.ZodNumber>;
        startedAt: z.ZodNullable<z.ZodNumber>;
        updatedAt: z.ZodNumber;
        lastOutputAt: z.ZodNullable<z.ZodNumber>;
        reviewReason: z.ZodNullable<z.ZodEnum<{
            error: "error";
            interrupted: "interrupted";
            attention: "attention";
            exit: "exit";
            hook: "hook";
        }>>;
        exitCode: z.ZodNullable<z.ZodNumber>;
        lastHookAt: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
        latestHookActivity: z.ZodDefault<z.ZodNullable<z.ZodObject<{
            activityText: z.ZodDefault<z.ZodNullable<z.ZodString>>;
            toolName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
            finalMessage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
            hookEventName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
            notificationType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
            source: z.ZodDefault<z.ZodNullable<z.ZodString>>;
        }, z.core.$strip>>>;
    }, z.core.$strip>;
}, z.core.$strip>, z.ZodObject<{
    type: z.ZodLiteral<"error">;
    message: z.ZodString;
}, z.core.$strip>, z.ZodObject<{
    type: z.ZodLiteral<"exit">;
    code: z.ZodNullable<z.ZodNumber>;
}, z.core.$strip>], "type">;
export type RuntimeTerminalWsServerMessage = z.infer<typeof runtimeTerminalWsServerMessageSchema>;
export declare const runtimeGitCommitSchema: z.ZodObject<{
    hash: z.ZodString;
    shortHash: z.ZodString;
    authorName: z.ZodString;
    authorEmail: z.ZodString;
    date: z.ZodString;
    message: z.ZodString;
    parentHashes: z.ZodArray<z.ZodString>;
}, z.core.$strip>;
export type RuntimeGitCommit = z.infer<typeof runtimeGitCommitSchema>;
export declare const runtimeGitRefSchema: z.ZodObject<{
    name: z.ZodString;
    type: z.ZodEnum<{
        branch: "branch";
        detached: "detached";
    }>;
    hash: z.ZodString;
    isHead: z.ZodBoolean;
    ahead: z.ZodOptional<z.ZodNumber>;
    behind: z.ZodOptional<z.ZodNumber>;
}, z.core.$strip>;
export type RuntimeGitRef = z.infer<typeof runtimeGitRefSchema>;
export declare const runtimeGitLogRequestSchema: z.ZodObject<{
    ref: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    maxCount: z.ZodOptional<z.ZodNumber>;
    skip: z.ZodOptional<z.ZodNumber>;
    taskScope: z.ZodOptional<z.ZodNullable<z.ZodObject<{
        taskId: z.ZodString;
        baseRef: z.ZodString;
    }, z.core.$strip>>>;
}, z.core.$strip>;
export type RuntimeGitLogRequest = z.infer<typeof runtimeGitLogRequestSchema>;
export declare const runtimeGitLogResponseSchema: z.ZodObject<{
    ok: z.ZodBoolean;
    commits: z.ZodArray<z.ZodObject<{
        hash: z.ZodString;
        shortHash: z.ZodString;
        authorName: z.ZodString;
        authorEmail: z.ZodString;
        date: z.ZodString;
        message: z.ZodString;
        parentHashes: z.ZodArray<z.ZodString>;
    }, z.core.$strip>>;
    totalCount: z.ZodNumber;
    error: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
export type RuntimeGitLogResponse = z.infer<typeof runtimeGitLogResponseSchema>;
export declare const runtimeGitCommitDiffFileSchema: z.ZodObject<{
    path: z.ZodString;
    previousPath: z.ZodOptional<z.ZodString>;
    status: z.ZodEnum<{
        modified: "modified";
        added: "added";
        deleted: "deleted";
        renamed: "renamed";
    }>;
    additions: z.ZodNumber;
    deletions: z.ZodNumber;
    patch: z.ZodString;
}, z.core.$strip>;
export type RuntimeGitCommitDiffFile = z.infer<typeof runtimeGitCommitDiffFileSchema>;
export declare const runtimeGitCommitDiffRequestSchema: z.ZodObject<{
    commitHash: z.ZodString;
    taskScope: z.ZodOptional<z.ZodNullable<z.ZodObject<{
        taskId: z.ZodString;
        baseRef: z.ZodString;
    }, z.core.$strip>>>;
}, z.core.$strip>;
export type RuntimeGitCommitDiffRequest = z.infer<typeof runtimeGitCommitDiffRequestSchema>;
export declare const runtimeGitCommitDiffResponseSchema: z.ZodObject<{
    ok: z.ZodBoolean;
    commitHash: z.ZodString;
    files: z.ZodArray<z.ZodObject<{
        path: z.ZodString;
        previousPath: z.ZodOptional<z.ZodString>;
        status: z.ZodEnum<{
            modified: "modified";
            added: "added";
            deleted: "deleted";
            renamed: "renamed";
        }>;
        additions: z.ZodNumber;
        deletions: z.ZodNumber;
        patch: z.ZodString;
    }, z.core.$strip>>;
    error: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
export type RuntimeGitCommitDiffResponse = z.infer<typeof runtimeGitCommitDiffResponseSchema>;
export declare const runtimeGitRefsResponseSchema: z.ZodObject<{
    ok: z.ZodBoolean;
    refs: z.ZodArray<z.ZodObject<{
        name: z.ZodString;
        type: z.ZodEnum<{
            branch: "branch";
            detached: "detached";
        }>;
        hash: z.ZodString;
        isHead: z.ZodBoolean;
        ahead: z.ZodOptional<z.ZodNumber>;
        behind: z.ZodOptional<z.ZodNumber>;
    }, z.core.$strip>>;
    error: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
export type RuntimeGitRefsResponse = z.infer<typeof runtimeGitRefsResponseSchema>;
export declare const runtimeHookEventSchema: z.ZodEnum<{
    to_review: "to_review";
    to_in_progress: "to_in_progress";
    activity: "activity";
}>;
export type RuntimeHookEvent = z.infer<typeof runtimeHookEventSchema>;
export declare const runtimeHookIngestRequestSchema: z.ZodObject<{
    taskId: z.ZodString;
    workspaceId: z.ZodString;
    event: z.ZodEnum<{
        to_review: "to_review";
        to_in_progress: "to_in_progress";
        activity: "activity";
    }>;
    metadata: z.ZodOptional<z.ZodObject<{
        activityText: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
        toolName: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
        finalMessage: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
        hookEventName: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
        notificationType: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
        source: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
    }, z.core.$strip>>;
}, z.core.$strip>;
export type RuntimeHookIngestRequest = z.infer<typeof runtimeHookIngestRequestSchema>;
export declare const runtimeHookIngestResponseSchema: z.ZodObject<{
    ok: z.ZodBoolean;
    error: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
export type RuntimeHookIngestResponse = z.infer<typeof runtimeHookIngestResponseSchema>;
//# sourceMappingURL=api-contract.d.ts.map