import { type AgenticHealthEvaluation, type AgenticHealthRequest } from "./agentic.js";
export declare const HEALTH_EVALUATION_PROTOCOL_VERSION: 1;
export declare const MAX_HEALTH_EVALUATION_REQUEST_BYTES: number;
export declare const MAX_HEALTH_EVALUATION_RESPONSE_BYTES: number;
/** Bounded request emitted for judgment by the current harness. */
export interface HealthEvaluationRequestEnvelope {
    readonly protocolVersion: typeof HEALTH_EVALUATION_PROTOCOL_VERSION;
    readonly requestDigest: string;
    readonly request: AgenticHealthRequest;
}
/** Hostile response accepted back from the current harness. */
export interface HealthEvaluationResponseEnvelope {
    readonly protocolVersion: typeof HEALTH_EVALUATION_PROTOCOL_VERSION;
    readonly requestDigest: string;
    readonly evaluation: AgenticHealthEvaluation;
}
/**
 * Resolve the digest's canonical project identity without following aliases.
 * @param projectPath - Project path supplied by the consumer
 * @returns Canonical real directory path used by the protocol digest
 */
export declare function resolveHealthProtocolProjectRoot(projectPath: string): Promise<string>;
/**
 * Create a bounded envelope for the captured request.
 * @param canonicalProjectRoot - Canonical project identity
 * @param request - Request produced by the shipped composition API
 * @returns Frozen bounded transport envelope
 */
export declare function createHealthEvaluationRequestEnvelope(canonicalProjectRoot: string, request: AgenticHealthRequest): HealthEvaluationRequestEnvelope;
/**
 * Serialize a prepare envelope for harness transport.
 * @param envelope - Request envelope returned by prepare
 * @returns Pretty canonical JSON with a trailing newline
 */
export declare function serializeHealthEvaluationRequest(envelope: HealthEvaluationRequestEnvelope): string;
/**
 * Return a response only when it is bound to this exact project and request.
 * A stale digest is an unavailable evaluation, never a judgment on new facts.
 * @param canonicalProjectRoot - Canonical project identity
 * @param request - Current request produced during final composition
 * @param candidate - Untrusted harness response
 * @returns Valid evaluation, or unavailable when its digest is stale
 */
export declare function evaluationForHealthRequest(canonicalProjectRoot: string, request: AgenticHealthRequest, candidate: unknown): AgenticHealthEvaluation;
//# sourceMappingURL=evaluation-protocol.d.ts.map