import { appendRoutingDecision } from '../../routing-telemetry.js'; export declare function emitTelemetry(entry: Parameters[0]): Promise; export declare function truncate(s: string, max?: number): string; export declare function boundedStopReason(stopReason: string | undefined): string | undefined; export declare function measurePartial(partial: unknown): number | undefined; export interface StructuredFailurePayload { status: string; error: string; schemaError?: string; partialOutput?: unknown; subagent_id: string; } export declare function buildFailurePayload(args: { status: string; errorMessage: string; schemaErrorMessage?: string; partialOutput?: unknown; subagentId: string; }): StructuredFailurePayload;