import { z } from "zod"; export type DurationUnit = "ms" | "s" | "m" | "h"; /** * Parses a duration shorthand string ("500ms" | "30s" | "5m" | "2h") or a raw * millisecond number into a millisecond count. Returns `null` for anything * unparseable, negative, or non-finite. */ export declare function parseDuration(value: string | number): number | null; /** * Zod schema that accepts a duration shorthand string or a raw millisecond * number and resolves to the parsed millisecond value. */ export declare const durationSchema: z.ZodPipe, z.ZodTransform>; export type Duration = z.input; //# sourceMappingURL=duration.d.ts.map