import { WindowClient } from '../window-client.mjs'; import '@teams.sdk/common'; import '../message.mjs'; import '../client-error.mjs'; /** * Describes errors that caused app initialization to fail */ type FailedReason = 'AuthFailed' | 'Timeout' | 'Other'; /** * Describes expected errors that occurred during an otherwise successful * app initialization */ type ExpectedFailureReason = 'PermissionError' | 'NotFound' | 'Throttling' | 'Offline' | 'Other'; /** * Represents the failed request sent during a failed app initialization. */ interface FailedParams { /** * The reason for the failure */ reason: FailedReason; /** * This property is currently unused. */ message?: string; } /** * Represents the failure request sent during an erroneous app initialization. */ interface ExpectedFailureParams { /** * The reason for the failure */ reason: ExpectedFailureReason; /** * A message that describes the failure */ message?: string; } declare class AppInitializationClient { readonly window: WindowClient; constructor(client: WindowClient); loaded(): Promise; success(): Promise; failure(params: FailedParams): Promise; expectedFailure(params: ExpectedFailureParams): Promise; } export { AppInitializationClient, type ExpectedFailureParams, type ExpectedFailureReason, type FailedParams, type FailedReason };