import * as _microsoft_spark_api from '@microsoft/spark.api';
import { ActivityParams, ConversationReference } from '@microsoft/spark.api';
import readline from 'readline';
import express from 'express';
import { Logger, EventEmitter, EventHandler } from '@microsoft/spark.common';
import { Plugin, PluginEvents, App } from '@microsoft/spark.apps';

/**
 * Console Receiver Options
 */
interface ConsoleOptions {
    /**
     * input stream
     * defaults to `process.stdin`
     */
    readonly stream?: NodeJS.ReadableStream;
}
/**
 * Can receive activities via the console
 */
declare class ConsolePlugin implements Plugin {
    protected options: ConsoleOptions;
    readonly name = "console";
    protected log: Logger;
    protected reader: readline.Interface;
    protected express: express.Application;
    protected events: EventEmitter<PluginEvents>;
    constructor(options?: ConsoleOptions);
    on<Name extends keyof PluginEvents>(name: Name, callback: EventHandler<PluginEvents[Name]>): void;
    onInit(app: App): void;
    onStart(port?: number): Promise<void>;
    onSend(activity: ActivityParams, ref: ConversationReference): Promise<{
        type: "message";
        text?: string | undefined;
        speak?: string | undefined;
        inputHint?: _microsoft_spark_api.InputHint | undefined;
        summary?: string | undefined;
        textFormat?: _microsoft_spark_api.TextFormat | undefined;
        attachmentLayout?: _microsoft_spark_api.AttachmentLayout | undefined;
        attachments?: _microsoft_spark_api.Attachment[] | undefined;
        suggestedActions?: _microsoft_spark_api.SuggestedActions | undefined;
        importance?: _microsoft_spark_api.Importance | undefined;
        deliveryMode?: _microsoft_spark_api.DeliveryMode | undefined;
        expiration?: Date | undefined;
        value?: any;
        id: string;
        serviceUrl?: string | undefined;
        timestamp?: Date | undefined;
        locale?: string | undefined;
        localTimestamp?: Date | undefined;
        channelId?: _microsoft_spark_api.ChannelID | undefined;
        from?: _microsoft_spark_api.Account<any> | undefined;
        conversation?: _microsoft_spark_api.ConversationAccount | undefined;
        relatesTo?: ConversationReference | undefined;
        recipient?: _microsoft_spark_api.Account<any> | undefined;
        replyToId?: string | undefined;
        entities?: _microsoft_spark_api.Entity[] | undefined;
        channelData?: _microsoft_spark_api.ChannelData | undefined;
    } | {
        type: "messageUpdate";
        text?: string | undefined;
        speak?: string | undefined;
        summary?: string | undefined;
        expiration?: Date | undefined;
        value?: any;
        channelData?: (_microsoft_spark_api.ChannelData & {
            eventType: "undeleteMessage" | "editMessage";
        }) | undefined;
        id: string;
        serviceUrl?: string | undefined;
        timestamp?: Date | undefined;
        locale?: string | undefined;
        localTimestamp?: Date | undefined;
        channelId?: _microsoft_spark_api.ChannelID | undefined;
        from?: _microsoft_spark_api.Account<any> | undefined;
        conversation?: _microsoft_spark_api.ConversationAccount | undefined;
        relatesTo?: ConversationReference | undefined;
        recipient?: _microsoft_spark_api.Account<any> | undefined;
        replyToId?: string | undefined;
        entities?: _microsoft_spark_api.Entity[] | undefined;
    } | {
        type: "messageDelete";
        channelData?: (_microsoft_spark_api.ChannelData & {
            eventType: "softDeleteMessage";
        }) | undefined;
        id: string;
        serviceUrl?: string | undefined;
        timestamp?: Date | undefined;
        locale?: string | undefined;
        localTimestamp?: Date | undefined;
        channelId?: _microsoft_spark_api.ChannelID | undefined;
        from?: _microsoft_spark_api.Account<any> | undefined;
        conversation?: _microsoft_spark_api.ConversationAccount | undefined;
        relatesTo?: ConversationReference | undefined;
        recipient?: _microsoft_spark_api.Account<any> | undefined;
        replyToId?: string | undefined;
        entities?: _microsoft_spark_api.Entity[] | undefined;
    } | {
        type: "messageReaction";
        reactionsAdded?: _microsoft_spark_api.MessageReaction[] | undefined;
        reactionsRemoved?: _microsoft_spark_api.MessageReaction[] | undefined;
        id: string;
        serviceUrl?: string | undefined;
        timestamp?: Date | undefined;
        locale?: string | undefined;
        localTimestamp?: Date | undefined;
        channelId?: _microsoft_spark_api.ChannelID | undefined;
        from?: _microsoft_spark_api.Account<any> | undefined;
        conversation?: _microsoft_spark_api.ConversationAccount | undefined;
        relatesTo?: ConversationReference | undefined;
        recipient?: _microsoft_spark_api.Account<any> | undefined;
        replyToId?: string | undefined;
        entities?: _microsoft_spark_api.Entity[] | undefined;
        channelData?: _microsoft_spark_api.ChannelData | undefined;
    } | {
        type: "event";
        name?: "application/vnd.microsoft.readReceipt" | undefined;
        id: string;
        serviceUrl?: string | undefined;
        timestamp?: Date | undefined;
        locale?: string | undefined;
        localTimestamp?: Date | undefined;
        channelId?: _microsoft_spark_api.ChannelID | undefined;
        from?: _microsoft_spark_api.Account<any> | undefined;
        conversation?: _microsoft_spark_api.ConversationAccount | undefined;
        relatesTo?: ConversationReference | undefined;
        recipient?: _microsoft_spark_api.Account<any> | undefined;
        replyToId?: string | undefined;
        entities?: _microsoft_spark_api.Entity[] | undefined;
        channelData?: _microsoft_spark_api.ChannelData | undefined;
    } | {
        type: "event";
        name?: "application/vnd.microsoft.meetingStart" | undefined;
        value?: {
            id: string;
            meetingType: string;
            joinUrl: string;
            title: string;
            startTime: Date;
        } | undefined;
        id: string;
        serviceUrl?: string | undefined;
        timestamp?: Date | undefined;
        locale?: string | undefined;
        localTimestamp?: Date | undefined;
        channelId?: _microsoft_spark_api.ChannelID | undefined;
        from?: _microsoft_spark_api.Account<any> | undefined;
        conversation?: _microsoft_spark_api.ConversationAccount | undefined;
        relatesTo?: ConversationReference | undefined;
        recipient?: _microsoft_spark_api.Account<any> | undefined;
        replyToId?: string | undefined;
        entities?: _microsoft_spark_api.Entity[] | undefined;
        channelData?: _microsoft_spark_api.ChannelData | undefined;
    } | {
        type: "event";
        name?: "application/vnd.microsoft.meetingEnd" | undefined;
        value?: {
            id: string;
            meetingType: string;
            joinUrl: string;
            title: string;
            endTime: Date;
        } | undefined;
        id: string;
        serviceUrl?: string | undefined;
        timestamp?: Date | undefined;
        locale?: string | undefined;
        localTimestamp?: Date | undefined;
        channelId?: _microsoft_spark_api.ChannelID | undefined;
        from?: _microsoft_spark_api.Account<any> | undefined;
        conversation?: _microsoft_spark_api.ConversationAccount | undefined;
        relatesTo?: ConversationReference | undefined;
        recipient?: _microsoft_spark_api.Account<any> | undefined;
        replyToId?: string | undefined;
        entities?: _microsoft_spark_api.Entity[] | undefined;
        channelData?: _microsoft_spark_api.ChannelData | undefined;
    } | {
        type: "event";
        name?: "application/vnd.microsoft.meetingParticipantJoin" | undefined;
        value?: {
            members: {
                user: _microsoft_spark_api.Account;
                meeting: {
                    inMeeting: boolean;
                    role: string;
                };
            }[];
        } | undefined;
        id: string;
        serviceUrl?: string | undefined;
        timestamp?: Date | undefined;
        locale?: string | undefined;
        localTimestamp?: Date | undefined;
        channelId?: _microsoft_spark_api.ChannelID | undefined;
        from?: _microsoft_spark_api.Account<any> | undefined;
        conversation?: _microsoft_spark_api.ConversationAccount | undefined;
        relatesTo?: ConversationReference | undefined;
        recipient?: _microsoft_spark_api.Account<any> | undefined;
        replyToId?: string | undefined;
        entities?: _microsoft_spark_api.Entity[] | undefined;
        channelData?: _microsoft_spark_api.ChannelData | undefined;
    } | {
        type: "event";
        name?: "application/vnd.microsoft.meetingParticipantLeave" | undefined;
        value?: {
            members: {
                user: _microsoft_spark_api.Account;
                meeting: {
                    inMeeting: boolean;
                    role: string;
                };
            }[];
        } | undefined;
        id: string;
        serviceUrl?: string | undefined;
        timestamp?: Date | undefined;
        locale?: string | undefined;
        localTimestamp?: Date | undefined;
        channelId?: _microsoft_spark_api.ChannelID | undefined;
        from?: _microsoft_spark_api.Account<any> | undefined;
        conversation?: _microsoft_spark_api.ConversationAccount | undefined;
        relatesTo?: ConversationReference | undefined;
        recipient?: _microsoft_spark_api.Account<any> | undefined;
        replyToId?: string | undefined;
        entities?: _microsoft_spark_api.Entity[] | undefined;
        channelData?: _microsoft_spark_api.ChannelData | undefined;
    } | {
        type: "invoke";
        name?: "fileConsent/invoke" | undefined;
        value?: _microsoft_spark_api.FileConsentCardResponse | undefined;
        relatesTo?: ConversationReference | undefined;
        id: string;
        serviceUrl?: string | undefined;
        timestamp?: Date | undefined;
        locale?: string | undefined;
        localTimestamp?: Date | undefined;
        channelId?: _microsoft_spark_api.ChannelID | undefined;
        from?: _microsoft_spark_api.Account<any> | undefined;
        conversation?: _microsoft_spark_api.ConversationAccount | undefined;
        recipient?: _microsoft_spark_api.Account<any> | undefined;
        replyToId?: string | undefined;
        entities?: _microsoft_spark_api.Entity[] | undefined;
        channelData?: _microsoft_spark_api.ChannelData | undefined;
    } | {
        type: "invoke";
        name?: "actionableMessage/executeAction" | undefined;
        value?: _microsoft_spark_api.O365ConnectorCardActionQuery | undefined;
        relatesTo?: ConversationReference | undefined;
        id: string;
        serviceUrl?: string | undefined;
        timestamp?: Date | undefined;
        locale?: string | undefined;
        localTimestamp?: Date | undefined;
        channelId?: _microsoft_spark_api.ChannelID | undefined;
        from?: _microsoft_spark_api.Account<any> | undefined;
        conversation?: _microsoft_spark_api.ConversationAccount | undefined;
        recipient?: _microsoft_spark_api.Account<any> | undefined;
        replyToId?: string | undefined;
        entities?: _microsoft_spark_api.Entity[] | undefined;
        channelData?: _microsoft_spark_api.ChannelData | undefined;
    } | {
        type: "invoke";
        name?: "composeExtension/anonymousQueryLink" | undefined;
        value?: _microsoft_spark_api.AppBasedLinkQuery | undefined;
        relatesTo?: ConversationReference | undefined;
        id: string;
        serviceUrl?: string | undefined;
        timestamp?: Date | undefined;
        locale?: string | undefined;
        localTimestamp?: Date | undefined;
        channelId?: _microsoft_spark_api.ChannelID | undefined;
        from?: _microsoft_spark_api.Account<any> | undefined;
        conversation?: _microsoft_spark_api.ConversationAccount | undefined;
        recipient?: _microsoft_spark_api.Account<any> | undefined;
        replyToId?: string | undefined;
        entities?: _microsoft_spark_api.Entity[] | undefined;
        channelData?: _microsoft_spark_api.ChannelData | undefined;
    } | {
        type: "invoke";
        name?: "composeExtension/fetchTask" | undefined;
        value?: _microsoft_spark_api.MessagingExtensionAction | undefined;
        relatesTo?: ConversationReference | undefined;
        id: string;
        serviceUrl?: string | undefined;
        timestamp?: Date | undefined;
        locale?: string | undefined;
        localTimestamp?: Date | undefined;
        channelId?: _microsoft_spark_api.ChannelID | undefined;
        from?: _microsoft_spark_api.Account<any> | undefined;
        conversation?: _microsoft_spark_api.ConversationAccount | undefined;
        recipient?: _microsoft_spark_api.Account<any> | undefined;
        replyToId?: string | undefined;
        entities?: _microsoft_spark_api.Entity[] | undefined;
        channelData?: _microsoft_spark_api.ChannelData | undefined;
    } | {
        type: "invoke";
        name?: "composeExtension/onCardButtonClicked" | undefined;
        value?: any;
        relatesTo?: ConversationReference | undefined;
        id: string;
        serviceUrl?: string | undefined;
        timestamp?: Date | undefined;
        locale?: string | undefined;
        localTimestamp?: Date | undefined;
        channelId?: _microsoft_spark_api.ChannelID | undefined;
        from?: _microsoft_spark_api.Account<any> | undefined;
        conversation?: _microsoft_spark_api.ConversationAccount | undefined;
        recipient?: _microsoft_spark_api.Account<any> | undefined;
        replyToId?: string | undefined;
        entities?: _microsoft_spark_api.Entity[] | undefined;
        channelData?: _microsoft_spark_api.ChannelData | undefined;
    } | {
        type: "invoke";
        name?: "composeExtension/queryLink" | undefined;
        value?: _microsoft_spark_api.AppBasedLinkQuery | undefined;
        relatesTo?: ConversationReference | undefined;
        id: string;
        serviceUrl?: string | undefined;
        timestamp?: Date | undefined;
        locale?: string | undefined;
        localTimestamp?: Date | undefined;
        channelId?: _microsoft_spark_api.ChannelID | undefined;
        from?: _microsoft_spark_api.Account<any> | undefined;
        conversation?: _microsoft_spark_api.ConversationAccount | undefined;
        recipient?: _microsoft_spark_api.Account<any> | undefined;
        replyToId?: string | undefined;
        entities?: _microsoft_spark_api.Entity[] | undefined;
        channelData?: _microsoft_spark_api.ChannelData | undefined;
    } | {
        type: "invoke";
        name?: "composeExtension/querySettingUrl" | undefined;
        value?: _microsoft_spark_api.MessagingExtensionQuery | undefined;
        relatesTo?: ConversationReference | undefined;
        id: string;
        serviceUrl?: string | undefined;
        timestamp?: Date | undefined;
        locale?: string | undefined;
        localTimestamp?: Date | undefined;
        channelId?: _microsoft_spark_api.ChannelID | undefined;
        from?: _microsoft_spark_api.Account<any> | undefined;
        conversation?: _microsoft_spark_api.ConversationAccount | undefined;
        recipient?: _microsoft_spark_api.Account<any> | undefined;
        replyToId?: string | undefined;
        entities?: _microsoft_spark_api.Entity[] | undefined;
        channelData?: _microsoft_spark_api.ChannelData | undefined;
    } | {
        type: "invoke";
        name?: "composeExtension/query" | undefined;
        value?: _microsoft_spark_api.MessagingExtensionQuery | undefined;
        relatesTo?: ConversationReference | undefined;
        id: string;
        serviceUrl?: string | undefined;
        timestamp?: Date | undefined;
        locale?: string | undefined;
        localTimestamp?: Date | undefined;
        channelId?: _microsoft_spark_api.ChannelID | undefined;
        from?: _microsoft_spark_api.Account<any> | undefined;
        conversation?: _microsoft_spark_api.ConversationAccount | undefined;
        recipient?: _microsoft_spark_api.Account<any> | undefined;
        replyToId?: string | undefined;
        entities?: _microsoft_spark_api.Entity[] | undefined;
        channelData?: _microsoft_spark_api.ChannelData | undefined;
    } | {
        type: "invoke";
        name?: "composeExtension/selectItem" | undefined;
        value?: any;
        relatesTo?: ConversationReference | undefined;
        id: string;
        serviceUrl?: string | undefined;
        timestamp?: Date | undefined;
        locale?: string | undefined;
        localTimestamp?: Date | undefined;
        channelId?: _microsoft_spark_api.ChannelID | undefined;
        from?: _microsoft_spark_api.Account<any> | undefined;
        conversation?: _microsoft_spark_api.ConversationAccount | undefined;
        recipient?: _microsoft_spark_api.Account<any> | undefined;
        replyToId?: string | undefined;
        entities?: _microsoft_spark_api.Entity[] | undefined;
        channelData?: _microsoft_spark_api.ChannelData | undefined;
    } | {
        type: "invoke";
        name?: "composeExtension/setting" | undefined;
        value?: _microsoft_spark_api.MessagingExtensionQuery | undefined;
        relatesTo?: ConversationReference | undefined;
        id: string;
        serviceUrl?: string | undefined;
        timestamp?: Date | undefined;
        locale?: string | undefined;
        localTimestamp?: Date | undefined;
        channelId?: _microsoft_spark_api.ChannelID | undefined;
        from?: _microsoft_spark_api.Account<any> | undefined;
        conversation?: _microsoft_spark_api.ConversationAccount | undefined;
        recipient?: _microsoft_spark_api.Account<any> | undefined;
        replyToId?: string | undefined;
        entities?: _microsoft_spark_api.Entity[] | undefined;
        channelData?: _microsoft_spark_api.ChannelData | undefined;
    } | {
        type: "invoke";
        name?: "composeExtension/submitAction" | undefined;
        value?: _microsoft_spark_api.MessagingExtensionAction | undefined;
        relatesTo?: ConversationReference | undefined;
        id: string;
        serviceUrl?: string | undefined;
        timestamp?: Date | undefined;
        locale?: string | undefined;
        localTimestamp?: Date | undefined;
        channelId?: _microsoft_spark_api.ChannelID | undefined;
        from?: _microsoft_spark_api.Account<any> | undefined;
        conversation?: _microsoft_spark_api.ConversationAccount | undefined;
        recipient?: _microsoft_spark_api.Account<any> | undefined;
        replyToId?: string | undefined;
        entities?: _microsoft_spark_api.Entity[] | undefined;
        channelData?: _microsoft_spark_api.ChannelData | undefined;
    } | {
        type: "invoke";
        name?: "config/fetch" | undefined;
        value?: any;
        relatesTo?: ConversationReference | undefined;
        id: string;
        serviceUrl?: string | undefined;
        timestamp?: Date | undefined;
        locale?: string | undefined;
        localTimestamp?: Date | undefined;
        channelId?: _microsoft_spark_api.ChannelID | undefined;
        from?: _microsoft_spark_api.Account<any> | undefined;
        conversation?: _microsoft_spark_api.ConversationAccount | undefined;
        recipient?: _microsoft_spark_api.Account<any> | undefined;
        replyToId?: string | undefined;
        entities?: _microsoft_spark_api.Entity[] | undefined;
        channelData?: _microsoft_spark_api.ChannelData | undefined;
    } | {
        type: "invoke";
        name?: "config/submit" | undefined;
        value?: any;
        relatesTo?: ConversationReference | undefined;
        id: string;
        serviceUrl?: string | undefined;
        timestamp?: Date | undefined;
        locale?: string | undefined;
        localTimestamp?: Date | undefined;
        channelId?: _microsoft_spark_api.ChannelID | undefined;
        from?: _microsoft_spark_api.Account<any> | undefined;
        conversation?: _microsoft_spark_api.ConversationAccount | undefined;
        recipient?: _microsoft_spark_api.Account<any> | undefined;
        replyToId?: string | undefined;
        entities?: _microsoft_spark_api.Entity[] | undefined;
        channelData?: _microsoft_spark_api.ChannelData | undefined;
    } | {
        type: "invoke";
        name?: "tab/fetch" | undefined;
        value?: _microsoft_spark_api.TabRequest | undefined;
        relatesTo?: ConversationReference | undefined;
        id: string;
        serviceUrl?: string | undefined;
        timestamp?: Date | undefined;
        locale?: string | undefined;
        localTimestamp?: Date | undefined;
        channelId?: _microsoft_spark_api.ChannelID | undefined;
        from?: _microsoft_spark_api.Account<any> | undefined;
        conversation?: _microsoft_spark_api.ConversationAccount | undefined;
        recipient?: _microsoft_spark_api.Account<any> | undefined;
        replyToId?: string | undefined;
        entities?: _microsoft_spark_api.Entity[] | undefined;
        channelData?: _microsoft_spark_api.ChannelData | undefined;
    } | {
        type: "invoke";
        name?: "tab/submit" | undefined;
        value?: _microsoft_spark_api.TabRequest | undefined;
        relatesTo?: ConversationReference | undefined;
        id: string;
        serviceUrl?: string | undefined;
        timestamp?: Date | undefined;
        locale?: string | undefined;
        localTimestamp?: Date | undefined;
        channelId?: _microsoft_spark_api.ChannelID | undefined;
        from?: _microsoft_spark_api.Account<any> | undefined;
        conversation?: _microsoft_spark_api.ConversationAccount | undefined;
        recipient?: _microsoft_spark_api.Account<any> | undefined;
        replyToId?: string | undefined;
        entities?: _microsoft_spark_api.Entity[] | undefined;
        channelData?: _microsoft_spark_api.ChannelData | undefined;
    } | {
        type: "invoke";
        name?: "task/fetch" | undefined;
        value?: _microsoft_spark_api.TaskModuleRequest | undefined;
        relatesTo?: ConversationReference | undefined;
        id: string;
        serviceUrl?: string | undefined;
        timestamp?: Date | undefined;
        locale?: string | undefined;
        localTimestamp?: Date | undefined;
        channelId?: _microsoft_spark_api.ChannelID | undefined;
        from?: _microsoft_spark_api.Account<any> | undefined;
        conversation?: _microsoft_spark_api.ConversationAccount | undefined;
        recipient?: _microsoft_spark_api.Account<any> | undefined;
        replyToId?: string | undefined;
        entities?: _microsoft_spark_api.Entity[] | undefined;
        channelData?: _microsoft_spark_api.ChannelData | undefined;
    } | {
        type: "invoke";
        name?: "task/submit" | undefined;
        value?: _microsoft_spark_api.TaskModuleRequest | undefined;
        relatesTo?: ConversationReference | undefined;
        id: string;
        serviceUrl?: string | undefined;
        timestamp?: Date | undefined;
        locale?: string | undefined;
        localTimestamp?: Date | undefined;
        channelId?: _microsoft_spark_api.ChannelID | undefined;
        from?: _microsoft_spark_api.Account<any> | undefined;
        conversation?: _microsoft_spark_api.ConversationAccount | undefined;
        recipient?: _microsoft_spark_api.Account<any> | undefined;
        replyToId?: string | undefined;
        entities?: _microsoft_spark_api.Entity[] | undefined;
        channelData?: _microsoft_spark_api.ChannelData | undefined;
    } | {
        type: "invoke";
        name?: "message/submitAction" | undefined;
        value?: {
            actionName: "feedback";
            actionValue: {
                reaction: "like" | "dislike";
                feedback: string;
            };
        } | undefined;
        relatesTo?: ConversationReference | undefined;
        id: string;
        serviceUrl?: string | undefined;
        timestamp?: Date | undefined;
        locale?: string | undefined;
        localTimestamp?: Date | undefined;
        channelId?: _microsoft_spark_api.ChannelID | undefined;
        from?: _microsoft_spark_api.Account<any> | undefined;
        conversation?: _microsoft_spark_api.ConversationAccount | undefined;
        recipient?: _microsoft_spark_api.Account<any> | undefined;
        replyToId?: string | undefined;
        entities?: _microsoft_spark_api.Entity[] | undefined;
        channelData?: _microsoft_spark_api.ChannelData | undefined;
    } | {
        type: "invoke";
        name?: "handoff/action" | undefined;
        value?: {
            continuation: string;
        } | undefined;
        relatesTo?: ConversationReference | undefined;
        id: string;
        serviceUrl?: string | undefined;
        timestamp?: Date | undefined;
        locale?: string | undefined;
        localTimestamp?: Date | undefined;
        channelId?: _microsoft_spark_api.ChannelID | undefined;
        from?: _microsoft_spark_api.Account<any> | undefined;
        conversation?: _microsoft_spark_api.ConversationAccount | undefined;
        recipient?: _microsoft_spark_api.Account<any> | undefined;
        replyToId?: string | undefined;
        entities?: _microsoft_spark_api.Entity[] | undefined;
        channelData?: _microsoft_spark_api.ChannelData | undefined;
    } | {
        type: "invoke";
        name?: "signin/tokenExchange" | undefined;
        value?: _microsoft_spark_api.SignInExchangeToken | undefined;
        id: string;
        serviceUrl?: string | undefined;
        timestamp?: Date | undefined;
        locale?: string | undefined;
        localTimestamp?: Date | undefined;
        channelId?: _microsoft_spark_api.ChannelID | undefined;
        from?: _microsoft_spark_api.Account<any> | undefined;
        conversation?: _microsoft_spark_api.ConversationAccount | undefined;
        relatesTo?: ConversationReference | undefined;
        recipient?: _microsoft_spark_api.Account<any> | undefined;
        replyToId?: string | undefined;
        entities?: _microsoft_spark_api.Entity[] | undefined;
        channelData?: _microsoft_spark_api.ChannelData | undefined;
    } | {
        type: "invoke";
        name?: "signin/verifyState" | undefined;
        value?: _microsoft_spark_api.SigninStateVerifyQuery | undefined;
        id: string;
        serviceUrl?: string | undefined;
        timestamp?: Date | undefined;
        locale?: string | undefined;
        localTimestamp?: Date | undefined;
        channelId?: _microsoft_spark_api.ChannelID | undefined;
        from?: _microsoft_spark_api.Account<any> | undefined;
        conversation?: _microsoft_spark_api.ConversationAccount | undefined;
        relatesTo?: ConversationReference | undefined;
        recipient?: _microsoft_spark_api.Account<any> | undefined;
        replyToId?: string | undefined;
        entities?: _microsoft_spark_api.Entity[] | undefined;
        channelData?: _microsoft_spark_api.ChannelData | undefined;
    } | {
        type: "invoke";
        name?: "adaptiveCard/action" | undefined;
        value?: _microsoft_spark_api.AdaptiveCardInvokeValue | undefined;
        id: string;
        serviceUrl?: string | undefined;
        timestamp?: Date | undefined;
        locale?: string | undefined;
        localTimestamp?: Date | undefined;
        channelId?: _microsoft_spark_api.ChannelID | undefined;
        from?: _microsoft_spark_api.Account<any> | undefined;
        conversation?: _microsoft_spark_api.ConversationAccount | undefined;
        relatesTo?: ConversationReference | undefined;
        recipient?: _microsoft_spark_api.Account<any> | undefined;
        replyToId?: string | undefined;
        entities?: _microsoft_spark_api.Entity[] | undefined;
        channelData?: _microsoft_spark_api.ChannelData | undefined;
    } | {
        type: "trace";
        name?: string | undefined;
        label?: string | undefined;
        valueType?: string | undefined;
        value?: any;
        relatesTo?: ConversationReference | undefined;
        id: string;
        serviceUrl?: string | undefined;
        timestamp?: Date | undefined;
        locale?: string | undefined;
        localTimestamp?: Date | undefined;
        channelId?: _microsoft_spark_api.ChannelID | undefined;
        from?: _microsoft_spark_api.Account<any> | undefined;
        conversation?: _microsoft_spark_api.ConversationAccount | undefined;
        recipient?: _microsoft_spark_api.Account<any> | undefined;
        replyToId?: string | undefined;
        entities?: _microsoft_spark_api.Entity[] | undefined;
        channelData?: _microsoft_spark_api.ChannelData | undefined;
    } | {
        type: "typing";
        text?: string | undefined;
        id: string;
        serviceUrl?: string | undefined;
        timestamp?: Date | undefined;
        locale?: string | undefined;
        localTimestamp?: Date | undefined;
        channelId?: _microsoft_spark_api.ChannelID | undefined;
        from?: _microsoft_spark_api.Account<any> | undefined;
        conversation?: _microsoft_spark_api.ConversationAccount | undefined;
        relatesTo?: ConversationReference | undefined;
        recipient?: _microsoft_spark_api.Account<any> | undefined;
        replyToId?: string | undefined;
        entities?: _microsoft_spark_api.Entity[] | undefined;
        channelData?: _microsoft_spark_api.ChannelData | undefined;
    } | {
        type: "handoff";
        id: string;
        serviceUrl?: string | undefined;
        timestamp?: Date | undefined;
        locale?: string | undefined;
        localTimestamp?: Date | undefined;
        channelId?: _microsoft_spark_api.ChannelID | undefined;
        from?: _microsoft_spark_api.Account<any> | undefined;
        conversation?: _microsoft_spark_api.ConversationAccount | undefined;
        relatesTo?: ConversationReference | undefined;
        recipient?: _microsoft_spark_api.Account<any> | undefined;
        replyToId?: string | undefined;
        entities?: _microsoft_spark_api.Entity[] | undefined;
        channelData?: _microsoft_spark_api.ChannelData | undefined;
    } | {
        type: "conversationUpdate";
        membersAdded?: _microsoft_spark_api.Account[] | undefined;
        membersRemoved?: _microsoft_spark_api.Account[] | undefined;
        topicName?: string | undefined;
        historyDisclosed?: boolean | undefined;
        channelData?: (_microsoft_spark_api.ChannelData & {
            eventType: "channelCreated" | "channelDeleted" | "channelRenamed" | "channelRestored" | "teamArchived" | "teamDeleted" | "teamHardDeleted" | "teamRenamed" | "teamRestored" | "teamUnarchived";
        }) | undefined;
        id: string;
        serviceUrl?: string | undefined;
        timestamp?: Date | undefined;
        locale?: string | undefined;
        localTimestamp?: Date | undefined;
        channelId?: _microsoft_spark_api.ChannelID | undefined;
        from?: _microsoft_spark_api.Account<any> | undefined;
        conversation?: _microsoft_spark_api.ConversationAccount | undefined;
        relatesTo?: ConversationReference | undefined;
        recipient?: _microsoft_spark_api.Account<any> | undefined;
        replyToId?: string | undefined;
        entities?: _microsoft_spark_api.Entity[] | undefined;
    } | {
        type: "endOfConversation";
        code?: _microsoft_spark_api.EndOfConversationCode | undefined;
        text?: string | undefined;
        id: string;
        serviceUrl?: string | undefined;
        timestamp?: Date | undefined;
        locale?: string | undefined;
        localTimestamp?: Date | undefined;
        channelId?: _microsoft_spark_api.ChannelID | undefined;
        from?: _microsoft_spark_api.Account<any> | undefined;
        conversation?: _microsoft_spark_api.ConversationAccount | undefined;
        relatesTo?: ConversationReference | undefined;
        recipient?: _microsoft_spark_api.Account<any> | undefined;
        replyToId?: string | undefined;
        entities?: _microsoft_spark_api.Entity[] | undefined;
        channelData?: _microsoft_spark_api.ChannelData | undefined;
    } | {
        type: "command";
        name?: string | undefined;
        value?: _microsoft_spark_api.CommandValue<any> | undefined;
        id: string;
        serviceUrl?: string | undefined;
        timestamp?: Date | undefined;
        locale?: string | undefined;
        localTimestamp?: Date | undefined;
        channelId?: _microsoft_spark_api.ChannelID | undefined;
        from?: _microsoft_spark_api.Account<any> | undefined;
        conversation?: _microsoft_spark_api.ConversationAccount | undefined;
        relatesTo?: ConversationReference | undefined;
        recipient?: _microsoft_spark_api.Account<any> | undefined;
        replyToId?: string | undefined;
        entities?: _microsoft_spark_api.Entity[] | undefined;
        channelData?: _microsoft_spark_api.ChannelData | undefined;
    } | {
        type: "commandResult";
        name?: string | undefined;
        value?: _microsoft_spark_api.CommandResultValue<any> | undefined;
        id: string;
        serviceUrl?: string | undefined;
        timestamp?: Date | undefined;
        locale?: string | undefined;
        localTimestamp?: Date | undefined;
        channelId?: _microsoft_spark_api.ChannelID | undefined;
        from?: _microsoft_spark_api.Account<any> | undefined;
        conversation?: _microsoft_spark_api.ConversationAccount | undefined;
        relatesTo?: ConversationReference | undefined;
        recipient?: _microsoft_spark_api.Account<any> | undefined;
        replyToId?: string | undefined;
        entities?: _microsoft_spark_api.Entity[] | undefined;
        channelData?: _microsoft_spark_api.ChannelData | undefined;
    } | {
        type: "installationUpdate";
        action?: "add" | undefined;
        id: string;
        serviceUrl?: string | undefined;
        timestamp?: Date | undefined;
        locale?: string | undefined;
        localTimestamp?: Date | undefined;
        channelId?: _microsoft_spark_api.ChannelID | undefined;
        from?: _microsoft_spark_api.Account<any> | undefined;
        conversation?: _microsoft_spark_api.ConversationAccount | undefined;
        relatesTo?: ConversationReference | undefined;
        recipient?: _microsoft_spark_api.Account<any> | undefined;
        replyToId?: string | undefined;
        entities?: _microsoft_spark_api.Entity[] | undefined;
        channelData?: _microsoft_spark_api.ChannelData | undefined;
    } | {
        type: "installationUpdate";
        action?: "remove" | undefined;
        id: string;
        serviceUrl?: string | undefined;
        timestamp?: Date | undefined;
        locale?: string | undefined;
        localTimestamp?: Date | undefined;
        channelId?: _microsoft_spark_api.ChannelID | undefined;
        from?: _microsoft_spark_api.Account<any> | undefined;
        conversation?: _microsoft_spark_api.ConversationAccount | undefined;
        relatesTo?: ConversationReference | undefined;
        recipient?: _microsoft_spark_api.Account<any> | undefined;
        replyToId?: string | undefined;
        entities?: _microsoft_spark_api.Entity[] | undefined;
        channelData?: _microsoft_spark_api.ChannelData | undefined;
    }>;
    protected onAuthRedirect(req: express.Request, res: express.Response, _next: express.NextFunction): void;
}

export { type ConsoleOptions, ConsolePlugin };
