import { TaskDependencyId, TaskDependencyKind, TaskId, UserId } from 'teambition-types'; import { TaskSchema } from './Task'; export declare type TaskDependencySchema = { _id: TaskDependencyId; _fromId: TaskId; _toId: TaskId; _creatorId: UserId; kind: TaskDependencyKind; lagTime: number; created: string; updated: string; } & (T extends 'with-task' ? { from: TaskSchema; to: TaskSchema; } : {});