import { CallBehaviorsNone, CallBehaviorsStatic, CallBehaviorsWebhook } from '../call-behaviors'; import { WebhookConfiguration } from '../webhook-configuration'; import { SvamlCommands } from './commands'; /** * Parameters for a STATIC service call behavior. * * `name` is written to `callName` on the SVAML document. * `onHangup` is written to `events.onHangup`. */ export interface StaticCallBehaviorParameters { /** Ordered SVAML commands executed for every call on this service. One command or a list. */ commands: SvamlCommands; /** Name of the call. Maps to `callName`. */ name?: string; /** SVAML commands executed when the call is hung up. One command or a list. */ onHangup?: SvamlCommands; } /** * Dedicated services helper for Voice v2 call behaviors. * * `static` builds a {@link CallBehaviorsStatic} from `commands`, an optional call `name`, * and optional `onHangup` commands. `none` configures no call behavior. `webhook` sends * call events to a URL. */ export declare const CallBehaviorHelper: { /** * Calls are handled using predefined static SVAML commands, without a backend webhook. */ static: (parameters: StaticCallBehaviorParameters) => CallBehaviorsStatic; /** * No call behavior is configured. Incoming calls are not handled. */ none: () => CallBehaviorsNone; /** * Calls are handled by sending webhook events to the configured URL. */ webhook: (webhook: WebhookConfiguration) => CallBehaviorsWebhook; };