/** * Task size weighting and priority scoring. * Ported from lib/tasks/size-weighting.sh * * @epic T4454 * @task T4529 */ import type { Task, TaskPriority, TaskSize } from '@cleocode/contracts'; /** * Get weight for a task size. */ export declare function getSizeWeight(size: TaskSize | null | undefined): number; /** * Get weight for a task priority. */ export declare function getPriorityWeight(priority: TaskPriority): number; /** * Calculate a composite score for task ordering. * Higher score = should be worked on first. */ export declare function calculateTaskScore(task: Task): number; /** * Sort tasks by weighted score (highest first). */ export declare function sortByWeight(tasks: Task[]): Task[]; /** * Calculate total weighted effort for a set of tasks. */ export declare function calculateTotalEffort(tasks: Task[]): number; /** * Calculate completion percentage by weight. */ export declare function calculateWeightedProgress(tasks: Task[]): number; /** * Estimate remaining effort (weighted sum of non-complete tasks). */ export declare function calculateRemainingEffort(tasks: Task[]): number; //# sourceMappingURL=size-weighting.d.ts.map