import { IntegrationContext, JsonValue, RiddleProofRunParams } from './types.js';
import './public-state.js';

interface OpenClawProofedChangeParams {
    repo?: string;
    branch?: string;
    change_request?: string;
    commit_message?: string;
    prod_url?: string;
    capture_script?: string;
    success_criteria?: string;
    assertions_json?: string;
    verification_mode?: string;
    resume_session?: string;
    target_image_url?: string;
    target_image_hash?: string;
    viewport_matrix_json?: string;
    deterministic_setup_json?: string;
    reference?: "prod" | "before" | "both" | (string & {});
    base_branch?: string;
    before_ref?: string;
    allow_static_preview_fallback?: boolean;
    context?: string;
    reviewer?: string;
    mode?: string;
    implementation_mode?: "change" | "none" | (string & {});
    require_diff?: boolean;
    allow_code_changes?: boolean;
    build_command?: string;
    build_output?: string;
    server_image?: string;
    server_command?: string;
    server_port?: number;
    server_path?: string;
    use_auth?: boolean;
    auth_localStorage_json?: string;
    auth_cookies_json?: string;
    auth_headers_json?: string;
    color_scheme?: "dark" | "light" | (string & {});
    wait_for_selector?: string;
    ship_after_verify?: boolean;
    ship_mode?: "none" | "ship";
    leave_draft?: boolean;
    state_path?: string;
    harness_state_path?: string;
    max_iterations?: number;
    auto_approve?: boolean;
    dry_run?: boolean;
    discord_channel?: string;
    discord_thread_id?: string;
    discord_message_id?: string;
    discord_source_url?: string;
}
declare function parseOpenClawAssertions(value: unknown): JsonValue | undefined;
declare function parseOpenClawJsonObjectOrArray(value: unknown, name: string): JsonValue | undefined;
declare function openClawIntegrationContext(params: OpenClawProofedChangeParams): IntegrationContext;
declare function toRiddleProofRunParams(params: OpenClawProofedChangeParams): RiddleProofRunParams;

export { type OpenClawProofedChangeParams, openClawIntegrationContext, parseOpenClawAssertions, parseOpenClawJsonObjectOrArray, toRiddleProofRunParams };
