/**
 * Server-side content-gate route handler factory.
 *
 * A lightweight LLM gate that decides whether a piece of client text is worth
 * running through document-style validation rules. Used by the thread form to
 * suppress validation noise on conversational client replies ("I don't have
 * those receipts") while still running validation when the client actually
 * submits document-like content.
 *
 * The gate response is never shown to the client — it only controls whether
 * the full validation pipeline fires.
 *
 * Usage:
 *   import { create_content_gate_route } from 'hazo_collab_forms/lib';
 *   export const POST = create_content_gate_route({ hazo_connect_adapter: getHazoConnect() });
 */
import 'server-only';
export interface ContentGateRouteOptions {
    sqlite_path?: string;
    hazo_connect_adapter?: unknown;
    on_error?: (err: unknown, ctx: string) => void;
    /** Default: 'thread_form' */
    prompt_area?: string;
    /** Default: 'gate_meaningful_content' */
    prompt_key?: string;
}
export interface ContentGateRequest {
    text: string;
}
export interface ContentGateResponse {
    success: boolean;
    has_content?: boolean;
    reason?: string;
    error?: string;
}
export declare function create_content_gate_route(options?: ContentGateRouteOptions): (request: Request) => Promise<Response>;
//# sourceMappingURL=content_gate_handler.d.ts.map