import { DateRange } from "@trackunit/date-and-time-utils"; import { TemporalPeriod } from "../../types"; /** * Calculate a date range based on a temporal period. * * @example * getDataRange({ direction: "next", count: 7, unit: "days" }); // { from: 2025-06-01, to: 2025-07-01 } * getDataRange({ direction: "last", count: 14, unit: "days" }); // { from: 2025-05-24, to: 2025-06-01 } */ export declare const useCalculateDateRange: () => ({ direction, count, unit }: TemporalPeriod) => DateRange;