import { Duration as DurationPB } from "@bufbuild/protobuf"; /** * A time value with nanosecond precision, generated by `now()`. * * The first element is the number of seconds since some epoch. * The second element is the number of nanoseconds. */ export type HRTime = [number, number]; /** * Returns nanosecond precision time since some epoch based * upon a high resolution timer. */ export declare function now(): HRTime; /** * A duration of time, generated by `since()`. * * The first element is the number of seconds. * The second element is the number of nanoseconds. */ export type Duration = [number, number]; export declare function since(start: HRTime): Duration; /** * This function is used to convert */ export declare function toDurationStr([seconds, nanoseconds]: Duration): string; /** * Parses a duration string into a duration. */ export declare function parseDuration(str: string): Duration; export declare function durationToProto([seconds, nanoseconds]: Duration): DurationPB;