import type { PersistedAgentEventInput } from '@memento/core'; import type { CaptureReason } from '@memento/agent-integration'; import type { Response } from 'express'; export declare function requireString(value: unknown, name: string): string; export declare function statusForValidationReason(reason: CaptureReason): number; export declare function parsePayload(prepared: PersistedAgentEventInput): Record; export declare function writeError(res: Response, error: unknown): Response; export declare function safeRecord(value: unknown): Record; export declare function safeNumber(value: unknown): number | null; export declare function percentile(sorted: number[], ratio: number): number | null; export declare function average(values: number[]): number | null; export declare function boundedStatusLimit(value: unknown): number; export declare function boundedStatusSince(value: unknown, now?: Date): string; export declare function safeTelemetrySessionId(extraData: string | null): string | null; //# sourceMappingURL=agent.routes.utils.d.ts.map