import { type DeliveryMessage } from "../../contracts/index.js"; export type ValidationError = "schema_version_unknown" | "schema_unknown_kind" | "schema_unknown_action_type" | "schema_invalid_id" | "schema_invalid_date" | "schema_invalid_cooldown" | "schema_url_not_https" | "schema_text_too_long" | "schema_response_too_large" | "schema_malformed"; export interface ParseResult { ok: true; message: DeliveryMessage | undefined; } export interface ParseFailure { ok: false; error: ValidationError; detail?: string; } /** * Parse and validate a raw response body from the message selection endpoint. * Returns ok:false on any violation — caller must render nothing and log the error. */ export declare function parseMessageSelectionResponse(raw: string): ParseResult | ParseFailure;