import { CSSObject } from 'styled-components'; import { CSSProperties } from 'react'; import { DefaultTheme } from 'styled-components'; import { DetailedHTMLProps } from 'react'; import { FocusEvent as FocusEvent_2 } from 'react'; import { HTMLAttributes } from 'react'; import { HTMLInputAutoCompleteAttribute } from 'react'; import { IStyledComponentBase } from 'styled-components/dist/types'; import { JSX } from 'react/jsx-runtime'; import { KeyboardEventHandler } from 'react'; import { MouseEventHandler } from 'react'; import { RefObject } from 'react'; import { RuleSet } from 'styled-components'; import { Substitute } from 'styled-components/dist/types'; import { TextareaHTMLAttributes } from 'react'; declare type AddDollarSign = { [K in keyof T as `$${string & K}`]: T[K]; }; declare type AddDollarSign_2 = { [K in keyof T as `$${string & K}`]: T[K]; }; declare interface addErrorProps { error?: ErrorMessageProps; } declare type addFontProps = { font?: FontSizeStylesProps; }; declare interface addSXProps { sx?: SXProps; } export declare const addTextArea: RuleSet & { lineHeight: number; }>>; declare type AutoHeightTextAreaProps = BaseTextAreaProps & { isAutoHeight: true; maxRows: number; isResize?: false | undefined; }; declare type BaseTextAreaProps = CommonTextAreaProps & (ControlledValue | UncontrolledValue); declare type CommonTextAreaProps = addErrorProps & addFontProps & addSXProps & { name?: string; ariaLabel?: string; autoComplete?: HTMLInputAutoCompleteAttribute | string; id?: string; ref?: RefObject; className?: string; genre: TextAreaGenre; minRows: number; size: IThemeSize; placeholder?: string; maxLength?: number; minLength?: number; isDisabled?: boolean; isDisabledOutline?: boolean; isOutlineBoxShadow?: boolean; isResize?: boolean; isLoading?: boolean; isReadOnly?: boolean; isInputEffect?: boolean; isRequired?: boolean; isNoSpaces?: boolean; isBold?: boolean; onFocus?: (event?: FocusEvent_2) => void; onBlur?: (event?: FocusEvent_2) => void; onChange?: (value: string) => void; onClick?: MouseEventHandler; onMouseDown?: MouseEventHandler; onKeyDown?: KeyboardEventHandler; }; declare type ControlledValue = { value: string | null | undefined; defaultValue?: never; }; declare type ErrorMessageProps = { errorMessage?: string; isError?: boolean; isErrorAbsolute?: boolean; size?: IThemeSize; sx?: addSXProps['sx']; } & addFontProps; declare type FixedTextAreaProps = BaseTextAreaProps & { isResize?: false | undefined; isAutoHeight?: false | undefined; maxRows?: never; }; declare type FontSizeStylesProps = { size?: TypographyDataProps['size']; weight?: TypographyDataProps['weight']; family?: TypographyDataProps['family']; height?: TypographyDataProps['height']; }; declare type IThemeDevice = 'default' | 'tablet' | 'mobile'; declare type IThemeFontFamily = 'Inter' | 'Roboto' | 'Work Sans' | 'Roboto Mono' | 'Manrope'; declare type IThemeGenreName = 'gray' | 'grayBorder' | 'black' | 'blackBorder' | 'product' | 'productBorder' | 'white' | 'greenTransparent' | 'redTransparent' | 'yellowTransparent' | 'realebail-product' | 'realebail-gray' | 'realebail-white' | 'bustmarket-gray-violet' | 'bustmarket-gray' | 'bustmarket-violet' | 'bustmarket-white-violet'; declare type IThemeGenreTextArea = Record, IThemeGenreTypeDefault>; declare interface IThemeGenreTypeDefault { background: { rest: string; hover: string; }; border: { rest: string; hover: string; }; color: { rest: string; hover: string; placeholder: string; }; } declare type IThemePaletteKeys = 'transparent' | 'black100' | 'black80' | 'black60' | 'black50' | 'black40' | 'black10' | 'black05' | 'black04' | 'blackHelena' | 'blackJanice' | 'grayJanice' | 'grayKaren' | 'grayMonica' | 'graySandra' | 'grayPatricia' | 'graySarah' | 'grayStassie' | 'grayAdriana' | 'greenGoogle' | 'grayBarbara' | 'grayStephanie' | 'grayFrances' | 'grayTina' | 'green100' | 'green50' | 'green25' | 'green10' | 'green10Background' | 'whiteStandard' | 'whiteJanice' | 'yellowGoogle' | 'yellow100' | 'yellow50' | 'yellow25' | 'yellow10' | 'yellow10Background' | 'redGoogle' | 'red100' | 'red50' | 'red25' | 'red10' | 'red10Background' | 'blueGoogle' | 'blueRest' | 'blueActive' | 'blueHover' | 'blueFocus' | 'blueBr' | 'blueKaren' | 'blueMonica' | 'violetStephanie' | 'violetJanice' | 'amnezia' | 'inherit' | 'currentColor'; declare type IThemeSize = 'large' | 'largeMedium' | 'medium' | 'mediumSmall' | 'small'; declare type IThemeTypographyWeight = 100 | 300 | 400 | 500 | 700 | 900; declare type ResizableTextAreaProps = BaseTextAreaProps & { isResize: true; isAutoHeight?: false | undefined; maxRows?: never; }; export declare const StyledTextArea: IStyledComponentBase<"web", Substitute, HTMLTextAreaElement>, AddDollarSign & { lineHeight: number; }>>> & string; export declare type StyledTextAreaProps = AddDollarSign_2 & { lineHeight: number; }>; declare type SXProps = ({ default: CSSObject; } & { [K in IThemeDevice]?: CSSObject; }) | ((theme: DefaultTheme) => { default: CSSObject; } & { [K in IThemeDevice]?: CSSObject; }); export declare const TextArea: (props: TextAreaProps) => JSX.Element; export declare type TextAreaGenre = keyof IThemeGenreTextArea; export declare type TextAreaProps = AutoHeightTextAreaProps | ResizableTextAreaProps | FixedTextAreaProps; export declare const TextAreaWrapper: IStyledComponentBase<"web", Substitute, HTMLDivElement>, AddDollarSign & { lineHeight: number; }>>> & string; export declare type TextAreaWrapperProps = AddDollarSign_2 & { lineHeight: number; }>; declare type TypographyDataProps = TypographyDefaultProps & { size?: number; }; declare type TypographyDefaultProps = { align?: CSSProperties['textAlign']; color?: IThemePaletteKeys; cursor?: CSSProperties['cursor']; decoration?: CSSProperties['textDecoration']; family?: IThemeFontFamily; flex?: string; height?: number | string; isHoverUnderlining?: boolean; letterSpacing?: CSSProperties['letterSpacing']; line?: number; overflow?: CSSProperties['overflow']; shadow?: 'shadowPulse'; transform?: CSSProperties['textTransform']; weight?: IThemeTypographyWeight; wrap?: CSSProperties['textWrap']; isNoUserSelect?: boolean; }; declare type UncontrolledValue = { value?: never; defaultValue: string; }; export { }