import { TextStyle, TextProps as TextProperties } from 'react-native';

import { TranslationKey } from '~/i18n';

import { BoldTypePresets, TextPresets } from './text.presets';

export type TextTransform = 'capitalize' | 'emphasize' | 'uppercase';

export interface TextProps extends TextProperties {
  boldType?: BoldTypePresets;
  preset?: TextPresets;
  text?: string;
  transform?: TextTransform;
  tx?: TranslationKey;
  txOptions?: object;
  children?: React.ReactNode;
  style?: TextStyle | TextStyle[];
}
