import * as React from 'react'; import { TextInput as RNTextInput } from 'react-native'; import { ChatMessage } from '../../rename.chat'; import { SlideModalRef } from '../../ui/Modal'; /** * Referencing Values of the `MessageInputEditMessage` component. */ export type MessageInputEditMessageRef = SlideModalRef & { /** * While displaying the component, the menu items will also be dynamically changed. */ startShowWithInit: (msg: ChatMessage) => void; }; /** * Properties of the `MessageInputEditMessage` component. */ export type MessageInputEditMessageProps = { /** * To request to close the component, you usually need to call the `startHide` method here. */ onRequestModalClose: () => void; /** * The callback function when the send button is clicked. */ onEditMessageFinished?: (msgId: string, text: string) => void; /** * Must be a text message. */ initMsg?: ChatMessage; /** * Keyboard offset setting required. If safe area is used. */ top?: number; bottom?: number; /** * The maximum number of lines in the input box. */ numberOfLines?: number; }; /** * The MessageInputEditMessage component provides menu functionality. * * @example * * ```tsx * const ref = React.useRef({} as any); * // ... * { * ref.current.startHide(); * }} * initMsg={msg} * /> * ``` */ export declare const MessageInputEditMessage: React.ForwardRefExoticComponent>; export declare function useMessageInputEditMessage({ msg, onEditMessageFinished, }: { msg: ChatMessage; onEditMessageFinished?: (msgId: string, text: string) => void; }): { msg: ChatMessage; updateMsg: (msg: ChatMessage) => void; value: string; setValue: (t: string) => void; inputRef: React.RefObject; onFocus: () => void; onBlur: () => void; disable: boolean; onEdited: () => void; }; //# sourceMappingURL=MessageInputEditMessage.d.ts.map