import type { ConfigValue, ConfigEvaluationMetadata, EvaluatedValue, EvaluationPayload, Duration } from "./types"; /** * Parse an ISO 8601 duration string in the Quonfig grammar (e.g. "PT90S", * "PT1H30M", "P1DT6H2M1.5S") into a Duration. Milliseconds are exact: the * fraction is read as decimal digits (no float arithmetic) and rounded half * up to an integer ms count. Returns undefined for anything outside the * grammar. */ export declare const parseDuration: (iso: unknown) => Duration | undefined; /** True for a value shaped like a parsed Duration ({ ms, seconds } numbers). */ export declare const isDuration: (value: unknown) => value is Duration; /** * Parsed config entry — holds the parsed value, its type, raw server value, and metadata. */ export declare class Config { key: string; value: ConfigValue; type: string; rawValue: EvaluatedValue | undefined; configEvaluationMetadata: ConfigEvaluationMetadata | undefined; /** * Set when the server value could not be coerced to its declared type * (today: a duration outside the grammar). The value is then undefined. * Never contains the raw value. */ coercionError: string | undefined; constructor(key: string, value: ConfigValue, type: string, rawValue?: EvaluatedValue, metadata?: ConfigEvaluationMetadata); /** * Parse the server evaluation payload into a map of Config objects. */ static digest(payload: EvaluationPayload): { [key: string]: Config; }; }