/** * `otterkit send ` - fire a correctly-signed synthetic * provider event at a local handler. Lets an agent develop and test a webhook * handler end to end with no provider account, dashboard, or real event. * * `otterkit verify ` - check captured requests' signatures against a * secret, answering "is my verification code wrong, or the payload?". * * Both are fully local; secrets never leave the machine. */ import { type VerifyResult } from './providers.js'; export declare class SendError extends Error { hint?: string; constructor(message: string, hint?: string); } export interface SendCoreOptions { /** HMAC secret to sign with. Without it, the request is sent unsigned. */ secret?: string; /** Override the generated payload with this raw JSON string. */ body?: string; } export interface SendResult { provider: string; event: string; url: string; signed: boolean; signatureHeader?: string; status: number; durationMs: number; responseBody: string | null; sentBody: string; } /** Fire a synthetic signed event. `spec` is "provider:event". */ export declare function sendCore(spec: string, target: string, options?: SendCoreOptions): Promise; export interface VerifyEntry { index: number; ts: string; method: string; path: string; result: VerifyResult; } /** Verify captured requests' signatures against a secret. */ export declare function verifyCore(subdomain: string, providerName: string, secret: string, opts?: { last?: number; }): Promise;