/**
 * webhook-server.ts
 *
 * Local development server for testing the webhook handler.
 *
 * Starts an HTTP server that receives Sanity webhook payloads, processes
 * them through the WebhookHandler, and logs results. Useful for local
 * development and testing the full event-driven trigger flow.
 *
 * Migrated from lib/webhook-server.ts — accepts rootDir and port as parameters.
 *
 * @see docs/design-docs/report-store/visibility-workflows.md
 */
import { createServer } from "http";
import { WebhookHandler } from "../webhook/handler.js";
export interface WebhookServerOptions {
    /** Root directory of the eval package */
    rootDir: string;
    /** Server port (default: 3333) */
    port?: number;
    /** GitHub token for dispatching workflow runs (omit for dry-run) */
    githubToken?: string;
    /** Daily dispatch budget */
    dailyBudget?: number;
    /** Debounce interval in ms */
    debounceMs?: number;
}
/**
 * Start the webhook development server.
 *
 * This function blocks and keeps the process alive.
 * Returns the HTTP server instance for graceful shutdown in tests.
 */
export declare function startWebhookServer(options: WebhookServerOptions): {
    server: ReturnType<typeof createServer>;
    handler: WebhookHandler;
};
