import type { Auth } from './auth.js'; /** * Outbound webhook management. Devs register URLs to receive HTTP POST * when events fire (user.first_visit, kv.changed, collection.created, etc.). * * The platform signs each delivery with HMAC-SHA256 using a per-webhook * secret (returned at registration time). Receivers verify the signature * via the X-FAS-Signature header. */ export interface Webhook { id: string; event: string; url: string; active: number; created_at: number; } export interface WebhookTestResult { status: number; body: string; } export declare class Webhooks { private readonly appId; private readonly apiBase; private readonly auth; constructor(appId: string, apiBase: string, auth: Auth); private headers; /** List all webhooks for this app + supported events. */ list(): Promise<{ webhooks: Webhook[]; supported_events: string[]; }>; /** Register a new webhook. Returns the webhook ID and signing secret. */ create(event: string, url: string): Promise<{ id: string; secret: string; }>; /** Delete a webhook by ID. */ delete(id: string): Promise; /** Send a test event to a webhook. Returns the HTTP status and response body. */ test(id: string): Promise; } //# sourceMappingURL=webhooks.d.ts.map