import { default as React } from 'react'; import { MenuKey, DialogMode, NotepadProps } from '../types'; export declare function useNotepad({ content: initialContent, readOnly, windowId, filePath, fileName, autoTypeText, autoTypeSpeed, }: NotepadProps): { t: import('i18next').TFunction<"translation", undefined>; textareaRef: React.RefObject; menuRef: React.RefObject; content: string; isReadOnly: boolean; isAutoTyping: boolean; wordWrap: boolean; showStatusBar: boolean; cursorPos: { line: number; col: number; }; openMenu: MenuKey; setOpenMenu: React.Dispatch>; contextMenu: { visible: boolean; x: number; y: number; }; dialogMode: DialogMode; findQuery: string; setFindQuery: React.Dispatch>; replaceQuery: string; setReplaceQuery: React.Dispatch>; replaceWith: string; setReplaceWith: React.Dispatch>; findInputRef: React.RefObject; replaceFindInputRef: React.RefObject; findStartIndexRef: React.MutableRefObject; replaceStartIndexRef: React.MutableRefObject; canUndo: boolean; canRedo: boolean; toggleMenu: (key: Exclude) => void; closeDialog: () => void; closeContextMenu: () => void; handleContextMenu: (e: React.MouseEvent) => void; handleContentChange: (e: React.ChangeEvent) => void; handleSelect: () => void; updateCursorPosition: () => void; handleShortcutKeyDown: (e: React.KeyboardEvent) => void; handleNew: () => void; handleOpen: () => void; handleSave: () => Promise; handleSaveAs: () => Promise; handleDownload: () => void; handleExit: () => void; handleUndo: () => void; handleRedo: () => void; handleCut: () => void; handleCopy: () => void; handlePaste: () => Promise; handleDelete: () => void; handleFind: () => void; handleOpenReplace: () => void; handleSelectAll: () => void; handleToggleWrap: () => void; handleToggleStatusBar: () => void; handleAbout: () => void; handleFindNext: () => void; handleReplaceFindNext: () => void; handleReplace: () => void; handleReplaceAll: () => void; };