import { ChatClient , ChatThreadClient } from '@azure/communication-chat' ; import { ChatErrorTarget } from './ChatClientState' ; /**
 * Internal type-assertion that explicitly listed  ChatErrorTarget correspond to the underlying base SDK API.
  export const ensureChatErrorTargetsContainsOnlyValidValues = ( target ) : InferredChatErrorTargets => target ; /**
 * Internal type-assertion that explicitly listed  ChatErrorTarget correspond to the underlying base SDK API.
  export const ensureChatErrorTargetsContainsAllValidValues = ( target ) : ChatErrorTarget => target ; /**
 * String literal type for all permissible keys in  ChatErrors .
  type InferredChatErrorTargets = ChatObjectMethodNames < 'ChatClient' , ChatClient > | ChatObjectMethodNames < 'ChatThreadClient' , ChatThreadClient > ; type ChatObjectMethodNames < TName extends string , T > = { [ K in keyof T & string ] : `${ TName }.${ ChatMethodName < T , K > }` ; } [ keyof T & string ] ; type ChatMethodName < T , K extends keyof T & string > = T [ K ] extends ( ... args : any [ ] ) => void ? K : never ;