import { RiddleProofCheckpointResponse, RiddleProofRunParams, RiddleProofRunState, RiddleProofCheckpointPacket, RiddleProofCheckpointSummary, RiddleProofStage, RiddleProofProofContract, RiddleProofStatePaths } from './types.js';

declare const RIDDLE_PROOF_CHECKPOINT_PACKET_VERSION: "riddle-proof.checkpoint.v1";
declare const RIDDLE_PROOF_CHECKPOINT_RESPONSE_VERSION: "riddle-proof.checkpoint_response.v1";
declare function statePathsForRunState(state: RiddleProofRunState, engineStatePath?: string | null): RiddleProofStatePaths;
declare function checkpointPacketIdentity(packet: RiddleProofCheckpointPacket): string;
declare function buildStageCheckpointPacket(input: {
    request: RiddleProofRunParams;
    runState: RiddleProofRunState;
    engineResult: {
        state_path?: string | null;
        checkpoint?: string | null;
        checkpointContract?: Record<string, unknown> | null;
        decisionRequest?: Record<string, unknown> | null;
        summary?: string;
        stage?: string | null;
    };
    fullRiddleState?: Record<string, unknown> | null;
    visibility?: "liveblog" | "quiet" | "terminal_only" | "manual" | string;
    created_at?: string;
}): RiddleProofCheckpointPacket;
declare function buildAuthorCheckpointPacket(input: {
    request: RiddleProofRunParams;
    runState: RiddleProofRunState;
    engineResult: {
        state_path?: string | null;
        checkpoint?: string | null;
        checkpointContract?: Record<string, unknown> | null;
        decisionRequest?: Record<string, unknown> | null;
        summary?: string;
    };
    fullRiddleState?: Record<string, unknown> | null;
    visibility?: "liveblog" | "quiet" | "terminal_only" | "manual" | string;
    created_at?: string;
}): RiddleProofCheckpointPacket;
declare function buildProofAssessmentCheckpointPacket(input: {
    request: RiddleProofRunParams;
    runState: RiddleProofRunState;
    engineResult: {
        state_path?: string | null;
        checkpoint?: string | null;
        checkpointContract?: Record<string, unknown> | null;
        decisionRequest?: Record<string, unknown> | null;
        summary?: string;
    };
    fullRiddleState?: Record<string, unknown> | null;
    visibility?: "liveblog" | "quiet" | "terminal_only" | "manual" | string;
    created_at?: string;
}): RiddleProofCheckpointPacket;
declare function buildCheckpointPacketForEngineResult(input: {
    request: RiddleProofRunParams;
    runState: RiddleProofRunState;
    engineResult: {
        state_path?: string | null;
        checkpoint?: string | null;
        checkpointContract?: Record<string, unknown> | null;
        decisionRequest?: Record<string, unknown> | null;
        summary?: string;
    };
    fullRiddleState?: Record<string, unknown> | null;
    visibility?: "liveblog" | "quiet" | "terminal_only" | "manual" | string;
    created_at?: string;
}): RiddleProofCheckpointPacket;
declare function normalizeCheckpointResponse(value: unknown): RiddleProofCheckpointResponse | null;
declare function createCheckpointResponseTemplate(packet: RiddleProofCheckpointPacket, input?: {
    decision?: string;
    summary?: string;
    payload?: Record<string, unknown>;
    reasons?: string[];
    continue_with_stage?: RiddleProofStage;
    source_kind?: NonNullable<RiddleProofCheckpointResponse["source"]>["kind"];
    created_at?: string;
}): RiddleProofCheckpointResponse;
declare function checkpointSummaryFromState(state: RiddleProofRunState, engineStatePath?: string | null): RiddleProofCheckpointSummary;
declare function isDuplicateCheckpointResponse(state: RiddleProofRunState, response: RiddleProofCheckpointResponse): boolean;
declare function checkpointResponseIdentity(response: RiddleProofCheckpointResponse): string;
declare function authorPacketPayloadFromCheckpointResponse(response: RiddleProofCheckpointResponse): Record<string, unknown> | null;
declare function proofContractFromAuthorCheckpointResponse(response: RiddleProofCheckpointResponse, packet: RiddleProofCheckpointPacket, payload: Record<string, unknown>): RiddleProofProofContract;

export { RIDDLE_PROOF_CHECKPOINT_PACKET_VERSION, RIDDLE_PROOF_CHECKPOINT_RESPONSE_VERSION, authorPacketPayloadFromCheckpointResponse, buildAuthorCheckpointPacket, buildCheckpointPacketForEngineResult, buildProofAssessmentCheckpointPacket, buildStageCheckpointPacket, checkpointPacketIdentity, checkpointResponseIdentity, checkpointSummaryFromState, createCheckpointResponseTemplate, isDuplicateCheckpointResponse, normalizeCheckpointResponse, proofContractFromAuthorCheckpointResponse, statePathsForRunState };
