interface CreateProjectInput {
    name: string;
    description?: string;
    repoPath: string;
    mainBranch?: string;
    copyFiles?: string;
    setupScript?: string;
    quickCommands?: string;
}
interface UpdateProjectInput {
    name?: string;
    description?: string;
    mainBranch?: string;
    copyFiles?: string | null;
    setupScript?: string | null;
    quickCommands?: string | null;
}
interface PaginationParams {
    page?: number;
    limit?: number;
    includeArchived?: boolean;
}
interface PaginatedResult<T> {
    data: T[];
    total: number;
    page: number;
    limit: number;
    totalPages: number;
}
/** 各状态的任务数量统计 */
interface TaskStats {
    total: number;
    todo: number;
    inProgress: number;
    inReview: number;
    done: number;
}
interface ArchiveProjectInput {
    deleteRepo?: boolean;
}
interface RestoreProjectInput {
    repoPath?: string;
}
interface RestoreProjectResult<T> {
    project: T;
    warnings: string[];
}
export declare class ProjectService {
    /**
     * 获取项目列表（支持分页）
     */
    findAll(params?: PaginationParams): Promise<PaginatedResult<any>>;
    /**
     * 根据 ID 查询项目详情，包含任务统计
     */
    findById(id: string): Promise<{
        taskStats: TaskStats;
        tasks: {
            id: string;
            description: string | null;
            createdAt: Date;
            updatedAt: Date;
            title: string;
            status: string;
            priority: number;
            position: number;
            projectId: string;
        }[];
        name: string;
        repoDeletedAt: Date | null;
        archivedAt: Date | null;
        repoRemoteUrl: string | null;
        id: string;
        description: string | null;
        repoPath: string;
        mainBranch: string;
        copyFiles: string | null;
        setupScript: string | null;
        quickCommands: string | null;
        createdAt: Date;
        updatedAt: Date;
    }>;
    /**
     * 创建项目
     * - 校验 repoPath 是否存在且为有效的 Git 仓库
     */
    create(input: CreateProjectInput): Promise<{
        name: string;
        repoDeletedAt: Date | null;
        archivedAt: Date | null;
        repoRemoteUrl: string | null;
        id: string;
        description: string | null;
        repoPath: string;
        mainBranch: string;
        copyFiles: string | null;
        setupScript: string | null;
        quickCommands: string | null;
        createdAt: Date;
        updatedAt: Date;
    }>;
    /**
     * 更新项目
     */
    update(id: string, input: UpdateProjectInput): Promise<{
        name: string;
        repoDeletedAt: Date | null;
        archivedAt: Date | null;
        repoRemoteUrl: string | null;
        id: string;
        description: string | null;
        repoPath: string;
        mainBranch: string;
        copyFiles: string | null;
        setupScript: string | null;
        quickCommands: string | null;
        createdAt: Date;
        updatedAt: Date;
    }>;
    /**
     * 归档项目（软删除）
     */
    archive(id: string, input?: ArchiveProjectInput): Promise<{
        name: string;
        repoDeletedAt: Date | null;
        archivedAt: Date | null;
        repoRemoteUrl: string | null;
        id: string;
        description: string | null;
        repoPath: string;
        mainBranch: string;
        copyFiles: string | null;
        setupScript: string | null;
        quickCommands: string | null;
        createdAt: Date;
        updatedAt: Date;
    }>;
    restore(id: string, input?: RestoreProjectInput): Promise<RestoreProjectResult<any>>;
    /**
     * 兼容旧的 DELETE 语义：改为归档项目，不再做硬删除。
     */
    delete(id: string): Promise<boolean>;
}
export {};
//# sourceMappingURL=project.service.d.ts.map