import { AmdCommand } from '../svaml-commands/amd-command'; import { CommandInput } from './command-input'; /** Event handlers for one `amd` command. Each accepts one command, a list, or a sequence callback. */ export interface AmdParameters { /** Commands to run when a human answers. */ onHuman?: CommandInput; /** Commands to run when a machine answers. */ onMachine?: CommandInput; /** Commands to run when a beep is detected. */ onBeep?: CommandInput; /** Commands to run when the result is unknown. */ onUnknown?: CommandInput; } /** * Builds an `amd` command. Event callbacks stack commands each time they are called. */ export declare class AmdCreator { private readonly events; onHuman(build: CommandInput): this; onMachine(build: CommandInput): this; onBeep(build: CommandInput): this; onUnknown(build: CommandInput): this; build(): AmdCommand; } /** * Builds one answering-machine detection command. */ export declare const Amd: { /** * Runs answering-machine detection. * Each event handler accepts one command, a list, or a sequence callback. */ activate(parameters?: AmdParameters): AmdCommand; };