/** * Webhook 发送器 — 重试 + HMAC-SHA256 签名 */ export interface WebhookSendOptions { url: string; payload: Record; authorizationBearer?: string; /** HMAC 密钥,不传则不签名 */ secret?: string; /** 最大重试次数 */ maxAttempts?: number; /** 首次重试延迟(毫秒) */ baseDelayMs?: number; /** 请求超时(毫秒) */ timeoutMs?: number; } export interface WebhookResult { ok: boolean; attempts: number; statusCode?: number; error?: Error; } /** 计算 HMAC-SHA256 签名(覆盖 timestamp + body 防重放) */ export declare function signPayload(body: string, secret: string, timestamp: string): string; /** 带重试和签名的 webhook 发送 */ export declare function sendWithRetry(opts: WebhookSendOptions): Promise; //# sourceMappingURL=webhook-sender.d.ts.map