Skip to content

Latest commit

 

History

History
69 lines (52 loc) · 2.06 KB

api-report.api.md

File metadata and controls

69 lines (52 loc) · 2.06 KB

API Report File for "@matrix-widget-toolkit/mui"

Do not edit this file. It is a report generated by API Extractor.

import { AvatarProps } from '@mui/material';
import { BackendModule } from 'i18next';
import { Capability } from 'matrix-widget-api';
import { ForwardRefExoticComponent } from 'react';
import LanguageDetector from 'i18next-browser-languagedetector';
import { PropsWithChildren } from 'react';
import { ReactElement } from 'react';
import { RefAttributes } from 'react';
import { WidgetApi } from '@matrix-widget-toolkit/api';
import { WidgetEventCapability } from 'matrix-widget-api';
import { WidgetRegistration } from '@matrix-widget-toolkit/api';

// @public
export const ElementAvatar: ForwardRefExoticComponent<Omit<ElementAvatarProps, "ref"> & RefAttributes<HTMLDivElement>>;

// @public
export type ElementAvatarProps = {
    userId: string;
    displayName?: string;
    avatarUrl?: string;
} & AvatarProps;

// @public
export function getEnvironment(name: string): string | undefined;

// @public
export function getEnvironment(name: string, defaultValue: string): string;

// @public
export function getNonce(): string | undefined;

// @public
export function MuiCapabilitiesGuard({ capabilities, children, }: MuiCapabilitiesGuardProps): ReactElement;

// @public
export type MuiCapabilitiesGuardProps = PropsWithChildren<{
    capabilities: Array<WidgetEventCapability | Capability>;
}>;

// @public
export function MuiThemeProvider({ children, }: MuiThemeProviderProps): ReactElement;

// @public
export type MuiThemeProviderProps = PropsWithChildren;

// @public
export function MuiWidgetApiProvider({ widgetRegistration, widgetApiPromise, children, }: MuiWidgetApiProviderProps): ReactElement;

// @public
export type MuiWidgetApiProviderProps = PropsWithChildren<{
    widgetRegistration?: WidgetRegistration;
    widgetApiPromise: Promise<WidgetApi>;
}>;

// @public
export class WidgetApiLanguageDetector extends LanguageDetector {
    constructor();
}

// @public
export const WidgetToolkitI18nBackend: BackendModule<object>;