import { type IncomingMessage, type ServerResponse, type Server } from 'node:http';
import type { RouteHandler } from '../types/index.js';
/** Simple HTTP router for webhook endpoints */
export declare class WebhookRouter {
    private readonly routes;
    add(method: string, path: string | RegExp, handler: RouteHandler): void;
    handle(req: IncomingMessage, res: ServerResponse): Promise<void>;
}
/** Verify Bearer token from Authorization header */
export declare function verifyBearerToken(req: IncomingMessage, secret: string): boolean;
export declare function getActiveServer(): Server | null;
export declare function setActiveServer(server: Server | null): void;
/** Start the HTTP server on the given port with the provided router */
export declare function startWebhookServer(port: number, router: WebhookRouter): Promise<Server>;
/** Stop the active server */
export declare function stopWebhookServer(): Promise<void>;
/** Generate OpenAPI 3.0 YAML documentation for the webhook server */
export declare function generateWebhookOpenApiYaml(port: number): string;
//# sourceMappingURL=webhook-server.d.ts.map