import type { PickOne } from 'type-fns'; import type { IsoDurationShape } from '../../domain.objects/IsoDurationShape'; import type { IsoDateStampRange, IsoTimeStampRange } from '../../domain.objects/IsoTimeStampRange'; /** * .what = calculates the duration of a time range * .why = enables computing elapsed time between two stamps */ export declare const getDuration: (input: { /** * what measure of time to extract a duration from */ of: PickOne<{ range: IsoTimeStampRange | IsoDateStampRange; milliseconds: number; }>; /** * the unit to define the duration in, if desired * * note * - by default, it will define it via all of them */ as?: keyof IsoDurationShape; }) => IsoDurationShape;