import { AddVoiceParticipantMediaProperties } from "@twiliointernal/cbm-sdk"; import { CallOptions, DequeueOptions, RedirectOptions, Reservation, ReservationParticipantOptions, TaskParticipantOptions, Worker } from "twilio-taskrouter"; import { ITask, IWorker, TaskTransfer } from "./CommonModels"; /** * @private */ export declare class TaskRouterTask implements ITask { private _task; private _reservation; private _incomingTransferObject?; private _outgoingTransferObject?; constructor(reservation: Reservation); get source(): any; get sourceObject(): Reservation; get addOns(): any; get age(): any; get attributes(): any; get formattedAttributes(): { from?: string; outbound_to?: string; }; get dateCreated(): any; get dateUpdated(): any; get priority(): any; get queueName(): any; get queueSid(): any; get reason(): any; get sid(): string; get taskSid(): any; get status(): "pending" | "accepted" | "wrapping" | "completed" | "canceled"; get taskStatus(): any; get taskChannelSid(): any; get taskChannelUniqueName(): any; get timeout(): any; get workflowName(): any; get workflowSid(): any; get workerSid(): string; get routingTarget(): any; get defaultFrom(): any; get channelType(): any; get incomingTransferObject(): TaskTransfer; get outgoingTransferObject(): TaskTransfer; get conference(): import("../state/Conferences").Conference; transfer: (to: string, options: any) => any; setAttributes: (attributes: object) => any; wrapUp: () => Promise; complete: () => Promise; hold: (holdUrl?: string, holdMethod?: string) => any; unhold: () => any; holdParticipant: (targetSid: string, holdMusicUrl?: string, holdMusicMethod?: string) => any; unholdParticipant: (targetSid: string) => any; kick: (targetSid: string) => any; cancelTransfer: () => any; updateWorkerParticipant: (options?: ReservationParticipantOptions) => Promise; updateCustomerParticipant: (options?: TaskParticipantOptions) => Promise; issueCallToWorker: (from: string, url: string, options?: CallOptions) => Promise; dequeue: (options?: DequeueOptions) => Promise; redirectCall: (callSid: string, url: string, options?: RedirectOptions) => Promise; addVoiceParticipant: (from: string, to: string, type: string) => Promise; joinCall: (props?: { mediaProperties?: AddVoiceParticipantMediaProperties; }) => Promise; endConference: () => Promise; setEndConferenceOnExit: (participantSid: string, endConferenceOnExit: boolean) => Promise; getChannels: () => Promise; getParticipants: (channelSid: string, options?: object) => Promise; } /** * @private */ export declare class TaskRouterWorker implements IWorker { private _source; constructor(source: Worker); get source(): Worker; get sid(): string; get name(): string; get fullName(): any; get activityName(): any; get attributes(): any; get dateUpdated(): Date; get isAvailable(): boolean; get activityDuration(): string; }