import { TimeRange } from '../types/components'; export declare function parseTime(time: string): { hour: number; minute: number; }; export declare function formatTime(hour: number, minute: number, format?: '12h' | '24h'): string; export declare function formatTimeSlot(time: string, format?: '12h' | '24h'): string; export declare function generateTimeSlots(start: string, end: string, stepMinutes: number): string[]; export declare function rangesOverlap(a: TimeRange, b: TimeRange): boolean; export declare function durationMinutes(start: string, end: string): number; export declare function formatDuration(minutes: number): string; export declare function isTimeInRange(time: string, start: string, end: string): boolean; export declare function findAvailableSlots(dayStart: string, dayEnd: string, occupied: TimeRange[], minDuration: number): TimeRange[]; export declare function snapToSlot(time: string, stepMinutes: number): string; export declare function addMinutes(time: string, minutes: number): string; export declare function compareTime(a: string, b: string): number; export declare function findNearestTimeSlotIndex(time: string, slots: readonly string[]): number; export declare function toMinutes(time: string): number; export declare function fromMinutes(total: number): string; /** Time utility helpers for parsing, formatting, comparing, and snapping HH:MM strings. */ export declare function useTimeUtils(): { parseTime: typeof parseTime; formatTime: typeof formatTime; formatTimeSlot: typeof formatTimeSlot; generateTimeSlots: typeof generateTimeSlots; rangesOverlap: typeof rangesOverlap; durationMinutes: typeof durationMinutes; formatDuration: typeof formatDuration; isTimeInRange: typeof isTimeInRange; findAvailableSlots: typeof findAvailableSlots; snapToSlot: typeof snapToSlot; addMinutes: typeof addMinutes; compareTime: typeof compareTime; findNearestTimeSlotIndex: typeof findNearestTimeSlotIndex; toMinutes: typeof toMinutes; fromMinutes: typeof fromMinutes; };