import { ConnectClientConfig, ConnectClientConfigDeprecated, ConnectClientWithOptionalConfig } from "@amazon-connect/core"; import { AgentChannelConcurrency, AgentRoutingProfile, AgentState, AgentStateChangedHandler, AvailabilityStateChangedHandler, EnabledChannelListChangedHandler, GetAvailabilityStateResult, ListQuickConnectsOptions, ListQuickConnectsResult, NetworkConnectionStatusChanged, NetworkConnectionStatusChangedHandler, NextAvailabilityStateChangedHandler, Queue, QueueARN, RoutingProfileChangedHandler, SetAvailabilityStateResult } from "./types"; export declare class AgentClient extends ConnectClientWithOptionalConfig { /** * Creates a new AgentClient instance with the specified configuration. * * @param config - The configuration for the client. Can be provided as: * - An AmazonConnectProvider instance directly: `new AgentClient(provider)` * - An object with provider: `new AgentClient({ provider })` * * @example * ```typescript * // Recommended: Pass provider directly * const client = new AgentClient(provider); * * // Alternative: Pass as object * const client = new AgentClient({ provider }); * ``` */ constructor(config: ConnectClientConfig); /** * @deprecated Calling AgentClient without AmazonConnectProvider is deprecated and will be removed in a future version. * Please provide an AmazonConnectProvider instance: `new AgentClient(provider)` */ constructor(config?: ConnectClientConfigDeprecated); getARN(): Promise; getName(): Promise; /** * @deprecated Use `getAvailabilityState` instead. Will be removed in a future major version. */ getState(): Promise; getRoutingProfile(): Promise; getChannelConcurrency(): Promise; getExtension(): Promise; /** * @deprecated Use `VoiceClient.listDialableCountries` instead. */ getDialableCountries(): Promise; /** * @deprecated Use `onAvailabilityStateChanged` instead. Will be removed in a future major version. */ onStateChanged(handler: AgentStateChangedHandler): void; /** * @deprecated Use `offAvailabilityStateChanged` instead. Will be removed in a future major version. */ offStateChanged(handler: AgentStateChangedHandler): void; /** * Subscribes to connection health status change events. * * @param handler - The handler function to invoke when the connection status changes. */ onNetworkConnectionStatusChanged(handler: NetworkConnectionStatusChangedHandler): void; /** * Unsubscribes from connection health status change events. * * @param handler - The handler function to remove from the subscription. */ offNetworkConnectionStatusChanged(handler: NetworkConnectionStatusChangedHandler): void; /** * Returns the current connection health status. * * Use this to check the connection status at any point, * regardless of when event subscriptions were registered. * * @returns The current connection status and timestamp. */ getNetworkConnectionStatus(): Promise; setAvailabilityState(agentStateARN: string): Promise; setAvailabilityStateByName(agentStateName: string): Promise; setOffline(): Promise; listAvailabilityStates(): Promise; listQuickConnects(queueARNs: QueueARN | QueueARN[], options?: ListQuickConnectsOptions): Promise; onEnabledChannelListChanged(handler: EnabledChannelListChangedHandler): void; offEnabledChannelListChanged(handler: EnabledChannelListChangedHandler): void; onRoutingProfileChanged(handler: RoutingProfileChangedHandler): void; offRoutingProfileChanged(handler: RoutingProfileChangedHandler): void; /** * Returns the agent's default outbound queue from their routing profile. */ getDefaultOutboundQueue(): Promise; /** * Returns all queues in the agent's current routing profile. */ getRoutingProfileQueues(): Promise; /** * Returns the agent's current availability state, plus an optional `nextState` * if the backend has queued a pending state transition until contacts clear. */ getAvailabilityState(): Promise; /** * Returns the list of security profile permissions for the current agent. */ listSecurityProfilePermissions(): Promise; /** * Subscribes to availability state change events. */ onAvailabilityStateChanged(handler: AvailabilityStateChangedHandler): void; /** * Unsubscribes from availability state change events. */ offAvailabilityStateChanged(handler: AvailabilityStateChangedHandler): void; /** * Subscribes to next-availability-state change events. Fires when the * agent has a pending state transition queued and that pending state changes. */ onNextAvailabilityStateChanged(handler: NextAvailabilityStateChangedHandler): void; /** * Unsubscribes from next-availability-state change events. */ offNextAvailabilityStateChanged(handler: NextAvailabilityStateChangedHandler): void; } //# sourceMappingURL=agent-client.d.ts.map