/** * Parse a `--since`/`--until` value: either a relative duration (`30m`, * `12h`, `7d`, `2w`, interpreted as "that long ago") or an absolute * timestamp accepted by `Date`. */ export declare function parseTimeInput(value: string, flagName: string): Date; /** * Resolve `--since`/`--until` flags into an explicit listing window for the * analytics runs API, or undefined when neither flag was given (the backend * then applies its default window). Windows older than the plan's * observability lookback are rejected by the backend with * `observability-upgrade-required`. */ export declare function resolveTimeWindow(opts: { since?: string; until?: string; }): { startTime: string; endTime: string; } | undefined; /** * Extract the plan observability-window start from a paginated analytics * response, for widening a defaulted (recent-window) listing to the whole * window the plan allows. Returns undefined when the response carries no * page metadata (e.g. non-Vercel backends). */ export declare function planWindowStartFromResponse(result: unknown): string | undefined; //# sourceMappingURL=time-window.d.ts.map