import { Gantt } from '@choerodon/gantt'; import { IGanttConflictAssignee, IGanttMoveRequestData } from '@/api'; import type { IGanttDimensionTypeValue } from './Gantt'; import { Issue, User } from '@/common/types'; import { GanttIssue, IGanttCollapsedHistory } from './types'; /** * 获取甘特图移动后待提交到后端数据 * * @param param0 * @returns 返回 undefined 则代表此次移动无效 */ export declare function getGanttMoveSubmitData({ sourceBar, type, destinationBar, flattenData, }: { sourceBar: Gantt.Bar; destinationBar: Gantt.Bar; type: IGanttDimensionTypeValue; flattenData: Gantt.Bar[]; }): (IGanttMoveRequestData | undefined); export declare function getGanttMoveDataOrigin({ type, sourceBar }: { sourceBar: Gantt.Bar; type: IGanttDimensionTypeValue; }): 'rankList' | 'data'; export declare function ganttLocalMove({ sourceBar, data, destinationBar, type, }: { data: any[]; sourceBar: Gantt.Bar; destinationBar: Gantt.Bar; type: IGanttDimensionTypeValue; }): { success: boolean; newData: any[]; }; /** 甘特图保存收起与否状态 */ export declare function ganttSaveCollapsedStatus({ flattenData }: { flattenData: Gantt.Bar[]; }): IGanttCollapsedHistory[]; export declare function ganttRestoreCollapsedStatus(ganttData: any, collapseHistory: IGanttCollapsedHistory[]): any; export declare function getGanttCreatingSubIssue(parentIssue: GanttIssue & { groupType?: string; }, dataIndex: number): { group: boolean; epicId: string | undefined; featureId: string | null | undefined; parentId: string; issueId: string; parent: GanttIssue & { groupType?: string | undefined; }; create: boolean; createId: number; assignee?: User | null | undefined; sprint?: { sprintName: string; statusCode: string; sprintId: string; } | undefined; groupType?: string | undefined; }; export declare const ganttNormalizeIssue: (issue: Issue, source?: any) => any; interface IGanttDataGroupProps { data: any[]; rankList?: string[]; type: IGanttDimensionTypeValue; isInProgram: boolean; menuType: 'project' | 'org'; conflictAssignees: IGanttConflictAssignee[]; } export declare const ganttDataGroupByType: ({ data, type, rankList, isInProgram, conflictAssignees, menuType, }: IGanttDataGroupProps) => any[]; export declare function ganttIsCanQuickCreateIssue(sprintIds?: string[] | null): boolean; export {};