/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ import { Storage } from '../storage'; import { AgentApplication } from './agentApplication'; import { AgentApplicationOptions } from './agentApplicationOptions'; import { AuthorizationOptions } from './auth/types'; import { ProactiveOptions } from './proactive'; import { TurnState } from './turnState'; import { TypingOptions } from './agentApplicationOptions'; /** * Builder class for creating and configuring AgentApplication instances. * @typeParam TState Type extending TurnState that will be used by the application */ export declare class AgentApplicationBuilder { protected _options: Partial>; /** * Gets the current options for the AgentApplication being built. * @returns The current options object */ protected get options(): Partial>; /** * Sets the storage provider for the AgentApplication. * @param storage The storage implementation to use * @returns This builder instance for chaining */ withStorage(storage: Storage): this; /** * Sets the factory function to create new TurnState instances. * @param turnStateFactory Function that creates a new TurnState * @returns This builder instance for chaining */ withTurnStateFactory(turnStateFactory: () => TState): this; /** * Configures whether the agent should display typing indicators. * @param startTypingTimer Whether to show typing indicators * @returns This builder instance for chaining */ setStartTypingTimer(startTypingTimer: boolean): this; /** * Configures timing behavior for automatic typing indicators. * @param typing Typing timer options * @returns This builder instance for chaining */ withTyping(typing: TypingOptions): this; /** * Sets authentication options for the AgentApplication. * @param authHandlers The user identity authentication options * @returns This builder instance for chaining */ withAuthorization(authHandlers: AuthorizationOptions): this; /** * Configures the proactive messaging subsystem. * @param options Proactive options including optional storage backend * @returns This builder instance for chaining */ withProactive(options: ProactiveOptions): this; /** * Builds and returns a new AgentApplication instance configured with the provided options. * @returns A new AgentApplication instance */ build(): AgentApplication; }