UNPKG

@promptbook/node

Version:

Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action

20 lines (19 loc) 660 B
/** * Parses a human-readable duration string into milliseconds. * * Supported formats: `Xh`, `Xm`, `Xs`, and combinations like `1h30m`, `1h30m5s`. * * @returns Duration in milliseconds * @throws When the string does not match any supported format * * @private internal utility of `ptbk coder run` */ export declare function parseDuration(durationString: string): number; /** * Formats a duration in milliseconds into a compact human-readable string. * * Examples: `3600000``"1h"`, `90000``"1m 30s"`, `5000``"5s"`. * * @private internal utility of `ptbk coder run` */ export declare function formatDurationMs(ms: number): string;