export declare function parseTimestamp(value: string | undefined): number | undefined; export declare function durationSecondsBetween(start: string | undefined, end: string | undefined): number | undefined; export declare function formatDuration(seconds: number | undefined): string; /** True for a bare YYYY-MM-DD, which Date.parse reads as midnight UTC. */ export declare function isDateOnly(value: string): boolean; /** Depot's usage RPCs take google.protobuf.Timestamp values, which JSON-encode as RFC 3339. */ export declare function toRfc3339(value: string): string; /** * For the end of a window, a bare date means "through the end of that day". Date.parse reads it * as midnight at the start of the day, which would silently exclude the whole day, so advance to * the next midnight UTC. Full timestamps are taken as given. */ export declare function toRfc3339WindowEnd(value: string): string; export declare function daysAgoRfc3339(days: number, now?: number): string; //# sourceMappingURL=time.d.ts.map