@azure/communication-react
Version:
React library for building modern communication user experiences utilizing Azure Communication Services
24 lines • 1.07 kB
TypeScript
import { CommunicationTokenCredential, CommunicationUserIdentifier } from '@azure/communication-common';
import { ChatAdapter, ChatCompositeOptions } from "../../react-composites/src/index-public";
/**
* Props for the ChatComposite that you can use in your application. Contains the
* options for the {@link ChatComposite} {@link ChatCompositeOptions}.
* @public
*/
export type ChatCompositeLoaderProps = {
userId: CommunicationUserIdentifier;
credential: CommunicationTokenCredential;
displayName?: string;
endpoint: string;
threadId: string;
chatCompositeOptions?: ChatCompositeOptions;
};
/**
* Loader function for the ChatComposite that you can use in your application. This
* function will load the ChatComposite into the provided HTML element.
* The best use case for this is in a Node UI framework that is not React based.
*
* @public
*/
export declare const loadChatComposite: (loaderArgs: ChatCompositeLoaderProps, htmlElement: HTMLElement) => Promise<ChatAdapter | undefined>;
//# sourceMappingURL=chatCompositeLoader.d.ts.map