/**
 * Gateway send helper — lets agents send messages to their owner
 * via the plugin's local HTTP server (port 18790) or OpenClaw managed routes.
 *
 * Delivery path: sendToOwner() → plugin HTTP /send → SecureChannel.send()
 *   → Double Ratchet encrypt → WebSocket → backend → owner's app
 */
export interface GatewaySendOptions {
    /** Override the gateway port (default: env GATEWAY_SEND_PORT or 18790) */
    port?: number;
    /** Override the gateway host (default: 127.0.0.1) */
    host?: string;
    /** AbortSignal for cancellation */
    signal?: AbortSignal;
}
export interface GatewaySendResult {
    ok: boolean;
    error?: string;
}
export interface GatewayStatusResult {
    ok: boolean;
    state?: string;
    deviceId?: string;
    sessions?: number;
    error?: string;
}
/**
 * Send a plaintext message to the agent's owner via the gateway HTTP server.
 * Never throws — returns `{ ok: false, error }` on failure.
 */
export declare function sendToOwner(text: string, options?: GatewaySendOptions): Promise<GatewaySendResult>;
/**
 * Send a decision request to the agent's owner via the gateway HTTP server.
 * Never throws — returns `{ ok: false, error }` on failure.
 */
export declare function sendDecisionToOwner(request: {
    title: string;
    description?: string;
    options: Array<{
        option_id: string;
        label: string;
        risk_level?: string;
        is_default?: boolean;
    }>;
    context_refs?: Array<{
        type: string;
        uri: string;
        label: string;
    }>;
    deadline?: string;
    auto_action?: {
        option_id: string;
        trigger: string;
        description?: string;
    };
}, options?: GatewaySendOptions): Promise<GatewaySendResult & {
    decision_id?: string;
}>;
/**
 * Check gateway health / status.
 * Never throws — returns `{ ok: false, error }` on failure.
 */
export declare function checkGateway(options?: GatewaySendOptions): Promise<GatewayStatusResult>;
//# sourceMappingURL=gateway-send.d.ts.map