/**
 * Parse duration in multiple formats, return milliseconds.
 *
 * Formats (detection order):
 * 1. ISO 8601: PT1H, PT30M, P1D, PT1H30M
 * 2. Integer seconds: 3600, 60
 * 3. Shorthand: 1h, 30m, 5s, 2d (backward compatible)
 */
export declare function parseDurationToMillis(duration: string): number;
export declare class InvalidResolutionError extends Error {
    constructor(message: string);
}
/**
 * Parse the History API `resolution` query parameter into milliseconds.
 *
 * Per the SignalK History API spec, resolution is a number of seconds or a
 * time expression of the form `<integer><unit>` where unit is s|m|h|d.
 */
export declare function parseResolutionToMillis(resolution: string | number): number;
//# sourceMappingURL=duration-parser.d.ts.map