export type WebhookFetchResult = { /** True for a 2xx response. */ ok: boolean; /** The HTTP status, or null when no response was received. */ statusCode: number | null; /** A short description of a network failure; null for any HTTP response. */ error: string | null; }; /** Short, admin-readable reason for a network failure. */ export declare function describeFetchError(e: unknown): string; /** * POST a webhook. Never throws: any failure is returned as a result. * * Success is a 2xx status within `REQUEST_TIMEOUT_MS`. Redirects are not * followed (a 3xx is a failure), and the response body is never read: it is * cancelled as soon as the status is known so the connection is released. */ export declare function postWebhook(url: string, headers: Record, body: string): Promise;