/** Webhook event envelope */ export interface WebhookEvent { id: string; event: string; version: string; created_at: string; workspace: { id: string; name: string; }; data: T; } /** * Verify an HMAC-SHA256 webhook signature. * * @returns true if signature is valid and timestamp is within tolerance */ export declare function verifyWebhookSignature(params: { secret: string; timestamp: string; body: string; signature: string; toleranceSeconds?: number; }): boolean; /** * Parse and verify a webhook event from HTTP request headers and body. * * @throws Error if signature is invalid, timestamp is expired, or headers are missing */ export declare function parseWebhookEvent(params: { headers: Record; body: string; secret: string; toleranceSeconds?: number; }): WebhookEvent;