@azure/communication-react
Version:
React library for building modern communication user experiences utilizing Azure Communication Services
33 lines • 972 B
TypeScript
import React from 'react';
import { StatefulChatClient } from "../../../chat-stateful-client/src";
/**
* @private
*/
export declare const ChatClientContext: React.Context<StatefulChatClient | undefined>;
/**
* Arguments to initialize a {@link ChatClientProvider}.
*
* @public
*/
export type ChatClientProviderProps = {
children: React.ReactNode;
chatClient: StatefulChatClient;
};
/**
* A {@link React.Context} that stores a {@link StatefulChatClient}.
*
* Chat components from this package must be wrapped with a {@link ChatClientProvider}.
*
* @public
*/
export declare const ChatClientProvider: (props: ChatClientProviderProps) => JSX.Element;
/**
* Hook to obtain {@link StatefulChatClient} from the provider.
*
* Useful when implementing a custom component that utilizes the providers
* exported from this library.
*
* @public
*/
export declare const useChatClient: () => StatefulChatClient;
//# sourceMappingURL=ChatClientProvider.d.ts.map