import { z } from 'zod/v4';
export declare const TaskStatusSchema: z.ZodEnum<{
    pending: "pending";
    running: "running";
    completed: "completed";
    failed: "failed";
    exceeded: "exceeded";
    pr_failed: "pr_failed";
}>;
export type TaskStatus = z.infer<typeof TaskStatusSchema>;
export declare const TaskFailureSchema: z.ZodObject<{
    step: z.ZodOptional<z.ZodString>;
    error: z.ZodString;
    last_message: z.ZodOptional<z.ZodString>;
}, z.core.$strict>;
export type TaskFailure = z.infer<typeof TaskFailureSchema>;
export declare const TaskRecordSchema: z.ZodPipe<z.ZodPipe<z.ZodUnknown, z.ZodTransform<unknown, unknown>>, z.ZodObject<{
    worktree: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
    branch: z.ZodOptional<z.ZodString>;
    base_branch: z.ZodOptional<z.ZodString>;
    workflow: z.ZodOptional<z.ZodString>;
    issue: z.ZodOptional<z.ZodNumber>;
    start_step: z.ZodOptional<z.ZodString>;
    retry_note: z.ZodOptional<z.ZodString>;
    auto_pr: z.ZodOptional<z.ZodBoolean>;
    draft_pr: z.ZodOptional<z.ZodBoolean>;
    managed_pr: z.ZodOptional<z.ZodBoolean>;
    should_publish_branch_to_origin: z.ZodOptional<z.ZodBoolean>;
    exceeded_max_steps: z.ZodOptional<z.ZodNumber>;
    exceeded_current_iteration: z.ZodOptional<z.ZodNumber>;
    source: z.ZodOptional<z.ZodEnum<{
        issue: "issue";
        manual: "manual";
        pr_review: "pr_review";
    }>>;
    pr_number: z.ZodOptional<z.ZodNumber>;
    resume_point: z.ZodOptional<z.ZodObject<{
        version: z.ZodLiteral<1>;
        stack: z.ZodArray<z.ZodObject<{
            workflow: z.ZodString;
            workflow_ref: z.ZodOptional<z.ZodString>;
            step: z.ZodString;
            kind: z.ZodEnum<{
                agent: "agent";
                system: "system";
                workflow_call: "workflow_call";
            }>;
        }, z.core.$strict>>;
        iteration: z.ZodNumber;
        elapsed_ms: z.ZodNumber;
    }, z.core.$strict>>;
    name: z.ZodString;
    status: z.ZodEnum<{
        pending: "pending";
        running: "running";
        completed: "completed";
        failed: "failed";
        exceeded: "exceeded";
        pr_failed: "pr_failed";
    }>;
    slug: z.ZodOptional<z.ZodString>;
    run_slug: z.ZodOptional<z.ZodString>;
    summary: z.ZodOptional<z.ZodString>;
    worktree_path: z.ZodOptional<z.ZodString>;
    pr_url: z.ZodOptional<z.ZodString>;
    content: z.ZodOptional<z.ZodString>;
    content_file: z.ZodOptional<z.ZodString>;
    task_dir: z.ZodOptional<z.ZodString>;
    created_at: z.ZodString;
    started_at: z.ZodNullable<z.ZodString>;
    completed_at: z.ZodNullable<z.ZodString>;
    owner_pid: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
    failure: z.ZodOptional<z.ZodObject<{
        step: z.ZodOptional<z.ZodString>;
        error: z.ZodString;
        last_message: z.ZodOptional<z.ZodString>;
    }, z.core.$strict>>;
}, z.core.$strict>>;
export type TaskRecord = z.infer<typeof TaskRecordSchema>;
export declare const TasksFileSchema: z.ZodObject<{
    tasks: z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodUnknown, z.ZodTransform<unknown, unknown>>, z.ZodObject<{
        worktree: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
        branch: z.ZodOptional<z.ZodString>;
        base_branch: z.ZodOptional<z.ZodString>;
        workflow: z.ZodOptional<z.ZodString>;
        issue: z.ZodOptional<z.ZodNumber>;
        start_step: z.ZodOptional<z.ZodString>;
        retry_note: z.ZodOptional<z.ZodString>;
        auto_pr: z.ZodOptional<z.ZodBoolean>;
        draft_pr: z.ZodOptional<z.ZodBoolean>;
        managed_pr: z.ZodOptional<z.ZodBoolean>;
        should_publish_branch_to_origin: z.ZodOptional<z.ZodBoolean>;
        exceeded_max_steps: z.ZodOptional<z.ZodNumber>;
        exceeded_current_iteration: z.ZodOptional<z.ZodNumber>;
        source: z.ZodOptional<z.ZodEnum<{
            issue: "issue";
            manual: "manual";
            pr_review: "pr_review";
        }>>;
        pr_number: z.ZodOptional<z.ZodNumber>;
        resume_point: z.ZodOptional<z.ZodObject<{
            version: z.ZodLiteral<1>;
            stack: z.ZodArray<z.ZodObject<{
                workflow: z.ZodString;
                workflow_ref: z.ZodOptional<z.ZodString>;
                step: z.ZodString;
                kind: z.ZodEnum<{
                    agent: "agent";
                    system: "system";
                    workflow_call: "workflow_call";
                }>;
            }, z.core.$strict>>;
            iteration: z.ZodNumber;
            elapsed_ms: z.ZodNumber;
        }, z.core.$strict>>;
        name: z.ZodString;
        status: z.ZodEnum<{
            pending: "pending";
            running: "running";
            completed: "completed";
            failed: "failed";
            exceeded: "exceeded";
            pr_failed: "pr_failed";
        }>;
        slug: z.ZodOptional<z.ZodString>;
        run_slug: z.ZodOptional<z.ZodString>;
        summary: z.ZodOptional<z.ZodString>;
        worktree_path: z.ZodOptional<z.ZodString>;
        pr_url: z.ZodOptional<z.ZodString>;
        content: z.ZodOptional<z.ZodString>;
        content_file: z.ZodOptional<z.ZodString>;
        task_dir: z.ZodOptional<z.ZodString>;
        created_at: z.ZodString;
        started_at: z.ZodNullable<z.ZodString>;
        completed_at: z.ZodNullable<z.ZodString>;
        owner_pid: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
        failure: z.ZodOptional<z.ZodObject<{
            step: z.ZodOptional<z.ZodString>;
            error: z.ZodString;
            last_message: z.ZodOptional<z.ZodString>;
        }, z.core.$strict>>;
    }, z.core.$strict>>>;
}, z.core.$strip>;
export type TasksFileData = z.infer<typeof TasksFileSchema>;
export declare function serializeTaskRecord(record: TaskRecord): Record<string, unknown>;
export declare function serializeTasksFileData(state: TasksFileData): {
    tasks: Record<string, unknown>[];
};
//# sourceMappingURL=taskRecordSchemas.d.ts.map