TeaSpeak-Client/imports/shared-app/ui/react-elements/i18n/index.d.ts

24 lines
907 B
TypeScript

import * as React from "react";
export declare class Translatable extends React.Component<{
children: string | (string | React.ReactElement<HTMLBRElement>)[];
trIgnore?: boolean;
}, {
translated: string;
}> {
protected renderElementIndex: number;
constructor(props: any);
render(): any[];
componentDidMount(): void;
componentWillUnmount(): void;
}
export declare type VariadicTranslatableChild = React.ReactElement | string | number;
export declare const VariadicTranslatable: (props: {
text: string;
children?: string | number | React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)>) | (new (props: any) => React.Component<any, any, any>)> | VariadicTranslatableChild[];
}) => JSX.Element;
declare global {
interface Window {
i18nInstances: Translatable[];
}
}