import { WebhookCommand } from '../svaml-commands/webhook-command'; /** Parameters for one `webhook` command. `name` and `url` are required. */ export interface WebhookParameters { /** Name of the webhook event. Maps to `webhookName`. */ name: string; /** URL of the webhook endpoint. */ url: string; /** Fallback URL used when the primary URL fails. */ fallbackUrl?: string; } /** * Builds a `webhook` command. * `trigger` writes `name` to `webhookName`. */ export declare class WebhookCreator { private parameters; /** * Configures the mid-call webhook. * `name` is written to `webhookName`. */ trigger(name: string, url: string, fallbackUrl?: string): this; build(): WebhookCommand; } /** * Builds one mid-call webhook command. */ export declare const Webhook: { /** * Triggers a mid-call webhook. * `name` is written to `webhookName`. */ trigger(parameters: WebhookParameters): WebhookCommand; };