import { NotFoundError } from '../errors.js';
export function ensureTaskNotDeleted(task) {
    if (!task || task.deletedAt) {
        throw new NotFoundError('Task', task?.id ?? 'unknown');
    }
}
export function isTaskDeleted(task) {
    return Boolean(task?.deletedAt);
}
//# sourceMappingURL=deleted-task-guard.js.map