1 | /**
|
2 | * Copyright (c) Microsoft Corporation. All rights reserved.
|
3 | * Licensed under the MIT License.
|
4 | */
|
5 | import { Activity, ConversationAccount, Transcript, TurnContext } from 'botbuilder-core';
|
6 | /**
|
7 | * Contains utility methods for creating various event types.
|
8 | */
|
9 | export declare class EventFactory {
|
10 | /**
|
11 | * Create handoff initiation event.
|
12 | * @param context The context object for the turn.
|
13 | * @param handoffContext Agent hub-specific context.
|
14 | * @param transcript Transcript of the conversation.
|
15 | */
|
16 | static createHandoffInitiation<T = unknown>(context: TurnContext, handoffContext: T, transcript?: Transcript): Activity;
|
17 | /**
|
18 | * Create handoff status event.
|
19 | * @param conversation Conversation being handed over.
|
20 | * @param state State, possible values are: "accepted", "failed", "completed".
|
21 | * @param message Additional message for failed handoff.
|
22 | */
|
23 | static createHandoffStatus(conversation: ConversationAccount, state: string, message?: string): Activity;
|
24 | /**
|
25 | * @private
|
26 | */
|
27 | private static createHandoffEvent;
|
28 | }
|
29 | //# sourceMappingURL=eventFactory.d.ts.map |
\ | No newline at end of file |