/**
 * Auto-commit and push for clone tasks
 *
 * After a successful workflow completion in a shared clone,
 * automatically stages all changes, creates a commit, and
 * pushes to origin so the branch is reflected in the main repo.
 * No co-author trailer is added.
 */
export interface AutoCommitResult {
    /** Whether the commit was created successfully */
    success: boolean;
    /** The short commit hash (if committed) */
    commitHash?: string;
    /** Whether the local push back to the main repo failed after commit creation */
    localPushFailed?: boolean;
    /** Human-readable message */
    message: string;
}
/**
 * Handles auto-commit and push operations for clone tasks.
 */
export declare class AutoCommitter {
    /**
     * Auto-commit all changes and push to the main project.
     *
     * Steps:
     * 1. Stage all changes (git add -A)
     * 2. Check if there are staged changes
     * 3. If changes exist, create a commit with "takt: {taskName}"
     * 4. Push to the main project directory
     */
    commitAndPush(cloneCwd: string, taskName: string, projectDir: string, branch?: string): AutoCommitResult;
}
export declare function autoCommitAndPush(cloneCwd: string, taskName: string, projectDir: string, branch?: string): AutoCommitResult;
//# sourceMappingURL=autoCommit.d.ts.map