/** * Twig API Server * * Exposes Twig core functions as HTTP endpoints. * TWIG_PAYMENT_ADDRESS must be set — process.exit(1) if missing. * * Endpoints: * GET /health — liveness probe * POST /analyze — free, analyzes a tool description * POST /optimize — free, generates optimized variants * POST /monitor — x402-gated ($0.50), full monitor diff */ import express from 'express'; export interface AnalyzeBody { url?: string; description?: string; name?: string; } export interface OptimizeBody { description: string; name?: string; } export interface MonitorBody { url: string; txHash?: string; } export declare function createApp(paymentAddress: string): express.Application; export declare function startServer(): void;