node/@bufbuild/protobuf/dist/commonjs/wkt/duration.d.ts
raw| 1 | import type { Duration } from "./gen/google/protobuf/duration_pb.js"; |
| 2 | /** |
| 3 | * Create a google.protobuf.Duration message from a Unix timestamp in milliseconds. |
| 4 | */ |
| 5 | export declare function durationFromMs(durationMs: number): Duration; |
| 6 | /** |
| 7 | * Convert a google.protobuf.Duration to a Unix timestamp in milliseconds. |
| 8 | */ |
| 9 | export declare function durationMs(duration: Duration): number; |