import { ReactElement, ReactNode } from 'react'; import { UseTranslatableOptions } from '../../features/core'; /** * Provides a way to edit multiple languages for any input passed as children. * It expects the translatable values to have the following structure: * { * name: { * en: 'The english value', * fr: 'The french value', * tlh: 'The klingon value', * }, * description: { * en: 'The english value', * fr: 'The french value', * tlh: 'The klingon value', * } * } * * @example Basic usage * * * * * * @example With a custom language selector * } * locales={['en', 'fr']} * > * * * * const MyLanguageSelector = () => { * const { * locales, * selectedLocale, * selectLocale, * } = useTranslatableContext(); * * return ( * * ); * } * * * @param props The component props * * @param {string} props.defaultLocale The locale selected by default. Default to 'en'. * * @param {string[]} props.locales An array of the possible locales. For example: `['en', 'fr']. * * @param {ReactElement} props.selector The element responsible for selecting a locale. Defaults to Material UI tabs. */ export declare const TranslatableInputs: (props: TranslatableInputsProps) => ReactElement; export interface TranslatableInputsProps extends UseTranslatableOptions { selector?: ReactElement; children: ReactNode; groupKey?: string; margin?: 'none' | 'normal' | 'dense'; variant?: 'standard' | 'outlined' | 'filled'; }