import { ApideckCore } from "../core.js";
import { RequestOptions } from "../lib/sdks.js";
import { ApideckError } from "../models/errors/apideckerror.js";
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
import * as errors from "../models/errors/index.js";
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
import * as operations from "../models/operations/index.js";
import { APIPromise } from "../types/async.js";
import { Result } from "../types/fp.js";
/**
 * Create webhook subscription
 *
 * @remarks
 * Create a webhook subscription to receive events.
 *
 * **Delivery URL Validation**: The provided `delivery_url` will be validated synchronously by sending an HTTP POST request with an HMAC signature. If validation fails (network error, timeout, non-2xx response), the webhook will still be created but with `status: "disabled"` and `disabled_reason: "delivery_url_validation_failed"`.
 *
 * **Important**: Always check the `status` and `disabled_reason` fields in the response to ensure the webhook is active.
 */
export declare function webhookWebhooksCreate(client: ApideckCore, request: operations.WebhookWebhooksAddRequest, options?: RequestOptions): APIPromise<Result<operations.WebhookWebhooksAddResponse, errors.BadRequestResponse | errors.UnauthorizedResponse | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse | ApideckError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
//# sourceMappingURL=webhookWebhooksCreate.d.ts.map