import type { WebhookServerState } from '../../types/index.js';
/** Returns the current webhook server state (immutable snapshot). */
export declare function getWebhookState(): WebhookServerState;
/** Replaces the webhook secret used for HMAC-SHA256 validation. */
export declare function setWebhookSecret(secret: string): void;
/** Starts the HTTP webhook server on the given port. Idempotent. */
export declare function startWebhookServer(port?: number): Promise<WebhookServerState>;
/** Stops the running webhook server gracefully. Idempotent. */
export declare function stopWebhookServer(): Promise<WebhookServerState>;
/** Reset replay protection state (for testing only). */
export declare function _resetReplayState(): void;
//# sourceMappingURL=server.d.ts.map