import React from 'react'; import type { TextInput as RNTextInput, TextInputProps as NativeTextInputProps, StyleProp, ViewStyle, TextStyle } from 'react-native'; import type { ToolbarMessageState } from './StyledToolbar'; export type ToolbarMessageHandles = Pick; export interface ToolbarMessageProps extends NativeTextInputProps { /** * Element to render on the left side of the input, before the user's cursor. */ prefix?: React.ReactNode; /** * Element to render on the right side of the input. */ suffix?: React.ReactNode; /** * Additional wrapper style. */ style?: StyleProp; /** * Input text style. */ textStyle?: StyleProp; /** * Testing id of the component. */ testID?: string; /** * Accessibility label for the input (Android). */ accessibilityLabelledBy?: string; /** * Placeholder text to display. * */ placeholder?: string; /** * Whether the input is editable. * */ editable?: boolean; /** * Whether the input is disabled. */ disabled?: boolean; /** * The max length of the input. * If the max length is set, the input will display the current length and the max length. * */ maxLength?: number; /** * Component ref. */ ref?: React.Ref; } export declare const getState: ({ disabled, editable, isEmptyValue, }: { disabled?: boolean; editable?: boolean; isEmptyValue?: boolean; }) => ToolbarMessageState; declare const ToolbarMessage: React.ForwardRefExoticComponent & React.RefAttributes>; export default ToolbarMessage;