export type DurationErrorKind = 'invalid-character' | 'number-expected' | 'unknown-unit' | 'number-overflow' | 'empty'; /** Carries the message the corresponding Rust error's Display produces. */ export declare class DurationParseError extends TypeError { kind: DurationErrorKind; constructor(kind: DurationErrorKind, message: string); } type ParsedDuration = { seconds: bigint; nanoseconds: bigint; }; /** Parses a humantime expression into seconds plus subsecond nanos. */ export declare const parseHumantimeDuration: (input: string) => ParsedDuration; /** * Mirrors `IggyDuration::from_str`: case-insensitive, with the zero * spellings mapped to a zero duration before humantime parsing. * * @returns Total nanoseconds as BigInt. */ export declare const parseIggyDurationNanoseconds: (value: string) => bigint; /** Rounds nanoseconds to whole milliseconds, half up. */ export declare const nanosecondsToMilliseconds: (totalNanoseconds: bigint) => number; export {}; //# sourceMappingURL=duration.utils.d.ts.map