import { z } from 'zod';
export declare const ScmWorktreeCommandResponseSchema: z.ZodObject<{
    success: z.ZodBoolean;
    stdout: z.ZodOptional<z.ZodString>;
    stderr: z.ZodOptional<z.ZodString>;
    error: z.ZodOptional<z.ZodString>;
    errorCode: z.ZodOptional<z.ZodEnum<{
        INVALID_REQUEST: "INVALID_REQUEST";
        NOT_REPOSITORY: "NOT_REPOSITORY";
        INVALID_PATH: "INVALID_PATH";
        COMMAND_FAILED: "COMMAND_FAILED";
        CHANGE_APPLY_FAILED: "CHANGE_APPLY_FAILED";
        COMMIT_REQUIRED: "COMMIT_REQUIRED";
        CONFLICTING_WORKTREE: "CONFLICTING_WORKTREE";
        REMOTE_AUTH_REQUIRED: "REMOTE_AUTH_REQUIRED";
        REMOTE_UPSTREAM_REQUIRED: "REMOTE_UPSTREAM_REQUIRED";
        REMOTE_NON_FAST_FORWARD: "REMOTE_NON_FAST_FORWARD";
        REMOTE_FF_ONLY_REQUIRED: "REMOTE_FF_ONLY_REQUIRED";
        REMOTE_REJECTED: "REMOTE_REJECTED";
        REMOTE_NOT_FOUND: "REMOTE_NOT_FOUND";
        FEATURE_UNSUPPORTED: "FEATURE_UNSUPPORTED";
        BACKEND_UNAVAILABLE: "BACKEND_UNAVAILABLE";
    }>>;
}, z.core.$strip>;
export type ScmWorktreeCommandResponse = z.infer<typeof ScmWorktreeCommandResponseSchema>;
export declare const ScmWorktreeCreateRequestSchema: z.ZodObject<{
    cwd: z.ZodOptional<z.ZodString>;
    backendPreference: z.ZodOptional<z.ZodObject<{
        kind: z.ZodLiteral<"prefer">;
        backendId: z.ZodEnum<{
            git: "git";
            sapling: "sapling";
        }>;
    }, z.core.$strip>>;
    displayName: z.ZodOptional<z.ZodString>;
    baseRef: z.ZodOptional<z.ZodString>;
    branchMode: z.ZodOptional<z.ZodEnum<{
        new: "new";
        existing: "existing";
    }>>;
}, z.core.$strip>;
export type ScmWorktreeCreateRequest = z.infer<typeof ScmWorktreeCreateRequestSchema>;
export declare const ScmWorktreeCreateResponseSchema: z.ZodObject<{
    success: z.ZodBoolean;
    worktreePath: z.ZodString;
    branchName: z.ZodString;
    sourceRootPath: z.ZodOptional<z.ZodString>;
    repositoryRootPath: z.ZodOptional<z.ZodString>;
    error: z.ZodOptional<z.ZodString>;
    errorCode: z.ZodOptional<z.ZodEnum<{
        INVALID_REQUEST: "INVALID_REQUEST";
        NOT_REPOSITORY: "NOT_REPOSITORY";
        INVALID_PATH: "INVALID_PATH";
        COMMAND_FAILED: "COMMAND_FAILED";
        CHANGE_APPLY_FAILED: "CHANGE_APPLY_FAILED";
        COMMIT_REQUIRED: "COMMIT_REQUIRED";
        CONFLICTING_WORKTREE: "CONFLICTING_WORKTREE";
        REMOTE_AUTH_REQUIRED: "REMOTE_AUTH_REQUIRED";
        REMOTE_UPSTREAM_REQUIRED: "REMOTE_UPSTREAM_REQUIRED";
        REMOTE_NON_FAST_FORWARD: "REMOTE_NON_FAST_FORWARD";
        REMOTE_FF_ONLY_REQUIRED: "REMOTE_FF_ONLY_REQUIRED";
        REMOTE_REJECTED: "REMOTE_REJECTED";
        REMOTE_NOT_FOUND: "REMOTE_NOT_FOUND";
        FEATURE_UNSUPPORTED: "FEATURE_UNSUPPORTED";
        BACKEND_UNAVAILABLE: "BACKEND_UNAVAILABLE";
    }>>;
}, z.core.$strip>;
export type ScmWorktreeCreateResponse = z.infer<typeof ScmWorktreeCreateResponseSchema>;
export declare const ScmWorktreeRemoveRequestSchema: z.ZodObject<{
    cwd: z.ZodOptional<z.ZodString>;
    backendPreference: z.ZodOptional<z.ZodObject<{
        kind: z.ZodLiteral<"prefer">;
        backendId: z.ZodEnum<{
            git: "git";
            sapling: "sapling";
        }>;
    }, z.core.$strip>>;
    worktreePath: z.ZodString;
}, z.core.$strip>;
export type ScmWorktreeRemoveRequest = z.infer<typeof ScmWorktreeRemoveRequestSchema>;
export declare const ScmWorktreeRemoveResponseSchema: z.ZodObject<{
    success: z.ZodBoolean;
    stdout: z.ZodOptional<z.ZodString>;
    stderr: z.ZodOptional<z.ZodString>;
    error: z.ZodOptional<z.ZodString>;
    errorCode: z.ZodOptional<z.ZodEnum<{
        INVALID_REQUEST: "INVALID_REQUEST";
        NOT_REPOSITORY: "NOT_REPOSITORY";
        INVALID_PATH: "INVALID_PATH";
        COMMAND_FAILED: "COMMAND_FAILED";
        CHANGE_APPLY_FAILED: "CHANGE_APPLY_FAILED";
        COMMIT_REQUIRED: "COMMIT_REQUIRED";
        CONFLICTING_WORKTREE: "CONFLICTING_WORKTREE";
        REMOTE_AUTH_REQUIRED: "REMOTE_AUTH_REQUIRED";
        REMOTE_UPSTREAM_REQUIRED: "REMOTE_UPSTREAM_REQUIRED";
        REMOTE_NON_FAST_FORWARD: "REMOTE_NON_FAST_FORWARD";
        REMOTE_FF_ONLY_REQUIRED: "REMOTE_FF_ONLY_REQUIRED";
        REMOTE_REJECTED: "REMOTE_REJECTED";
        REMOTE_NOT_FOUND: "REMOTE_NOT_FOUND";
        FEATURE_UNSUPPORTED: "FEATURE_UNSUPPORTED";
        BACKEND_UNAVAILABLE: "BACKEND_UNAVAILABLE";
    }>>;
}, z.core.$strip>;
export type ScmWorktreeRemoveResponse = z.infer<typeof ScmWorktreeRemoveResponseSchema>;
export declare const ScmWorktreePruneRequestSchema: z.ZodObject<{
    cwd: z.ZodOptional<z.ZodString>;
    backendPreference: z.ZodOptional<z.ZodObject<{
        kind: z.ZodLiteral<"prefer">;
        backendId: z.ZodEnum<{
            git: "git";
            sapling: "sapling";
        }>;
    }, z.core.$strip>>;
}, z.core.$strip>;
export type ScmWorktreePruneRequest = z.infer<typeof ScmWorktreePruneRequestSchema>;
export declare const ScmWorktreePruneResponseSchema: z.ZodObject<{
    success: z.ZodBoolean;
    stdout: z.ZodOptional<z.ZodString>;
    stderr: z.ZodOptional<z.ZodString>;
    error: z.ZodOptional<z.ZodString>;
    errorCode: z.ZodOptional<z.ZodEnum<{
        INVALID_REQUEST: "INVALID_REQUEST";
        NOT_REPOSITORY: "NOT_REPOSITORY";
        INVALID_PATH: "INVALID_PATH";
        COMMAND_FAILED: "COMMAND_FAILED";
        CHANGE_APPLY_FAILED: "CHANGE_APPLY_FAILED";
        COMMIT_REQUIRED: "COMMIT_REQUIRED";
        CONFLICTING_WORKTREE: "CONFLICTING_WORKTREE";
        REMOTE_AUTH_REQUIRED: "REMOTE_AUTH_REQUIRED";
        REMOTE_UPSTREAM_REQUIRED: "REMOTE_UPSTREAM_REQUIRED";
        REMOTE_NON_FAST_FORWARD: "REMOTE_NON_FAST_FORWARD";
        REMOTE_FF_ONLY_REQUIRED: "REMOTE_FF_ONLY_REQUIRED";
        REMOTE_REJECTED: "REMOTE_REJECTED";
        REMOTE_NOT_FOUND: "REMOTE_NOT_FOUND";
        FEATURE_UNSUPPORTED: "FEATURE_UNSUPPORTED";
        BACKEND_UNAVAILABLE: "BACKEND_UNAVAILABLE";
    }>>;
}, z.core.$strip>;
export type ScmWorktreePruneResponse = z.infer<typeof ScmWorktreePruneResponseSchema>;
//# sourceMappingURL=scmWorktrees.d.ts.map