import React from 'react'; import { Styles } from './textStyle'; type TextStyle = import('react-native').TextStyle; type ViewStyle = import('react-native').ViewStyle; export type textColors = 'primary' | 'error' | 'link' | 'success' | 'white' | 'gray' | 'warning' | 'orange' | 'black' | 'theme' | 'inprogress' | 'info' | 'yellow'; export type textSize = 10 | 12 | 14 | 16 | 18 | 20 | 22 | 24 | 26 | 28 | 30 | 32 | 34 | 36 | 38 | 40 | 42 | 44 | 45 | 46 | 48 | 50; export type textTransForm = 'capitalize' | 'uppercase' | 'lowercase'; export type textAlignForm = 'left' | 'justify' | 'center' | 'right'; export type textType = 'heading900' | 'heading800' | 'heading700' | 'heading600' | 'heading500' | 'heading400' | 'heading300' | 'heading200' | 'heading100' | 'body300' | 'body200' | 'body100'; type DefaultProps = { size: textSize; color: textColors; align: textAlignForm; allowFontScaling: boolean; }; declare const defaultProps: DefaultProps; type Props = { children: import('react').ReactNode; bold?: boolean; italic?: boolean; underline?: boolean; overrideStyle?: ViewStyle | TextStyle | any; flex?: number; transform?: textTransForm; numberOfLines?: number; testID?: string; type?: textType; ellipsizeMode?: 'head' | 'middle' | 'tail' | 'clip'; } & typeof defaultProps; export declare const isTextStyleKey: (str: string | undefined) => str is keyof Styles; export declare const isTextTypeKey: (str: string | undefined) => str is textType; export declare const isTextColorKey: (str: string | undefined) => str is textColors; export declare const isTextSizeKey: (str: string) => str is keyof Styles; declare const _default: React.MemoExoticComponent<{ (props: Props): JSX.Element; defaultProps: DefaultProps; }>; export default _default;