matrix-react-sdk
Version:
SDK for matrix.org using React
15 lines (14 loc) • 343 B
TypeScript
export interface IProfileInfoOpts {
query?: string;
}
export interface IProfileInfo {
user_id: string;
avatar_url?: string;
display_name?: string;
}
export declare const useProfileInfo: () => {
ready: boolean;
loading: boolean;
profile: IProfileInfo | null;
search(opts: IProfileInfoOpts): Promise<boolean>;
};