import { TaskEntity } from './types'; export type GanttBarInteractionMode = 'move' | 'resize-start' | 'resize-end' | 'resize-progress'; /** * Convert horizontal pointer movement into a whole-day timeline delta. * * The conversion uses the active timeline scale so coarse zoom presets still * move tasks by calendar days rather than raw ticks. */ export declare function pixelDeltaToDays(pixelDelta: number, tickWidth: number, tickCountDays: number): number; /** * Return a copy of a task with dates adjusted for a bar interaction. * * Move shifts both dates. Start resize clamps to the current end date. End * resize clamps to the current start date. */ export declare function applyTaskBarInteraction(task: TaskEntity, mode: GanttBarInteractionMode, dayDelta: number): TaskEntity; /** * Return a copy of a task with progress clamped into the valid percentage range. * * The helper is intentionally pure so pointer math can stay in the plugin while * task mutation rules remain testable and reusable. */ export declare function applyTaskProgressInteraction(task: TaskEntity, progressPercent: number): TaskEntity; //# sourceMappingURL=bar-interaction.d.ts.map