import { LexicalEditor } from 'lexical'; import { DisplayMode } from './types'; type TranslateStatus = 'idle' | 'pending' | 'processing' | 'completed'; interface EditorTranslateState { useCache: boolean; } interface State { targetLanguage: string | null; autoTranslate: boolean; displayMode: DisplayMode; editors: Map; editorTranslateStates: Map; } interface Action { translate: (editor?: LexicalEditor, options?: { useCache?: boolean; }) => void; showOriginal: (editor?: LexicalEditor) => void; setTargetLanguage: (targetLanguage: string) => void; setAutoTranslate: (autoTranslate: boolean) => void; setStatus: (editor: LexicalEditor, status: TranslateStatus) => void; setDisplayMode: (displayMode: DisplayMode) => void; registerEditor: (editor: LexicalEditor) => () => void; unregisterEditor: (editor: LexicalEditor) => void; } export declare const useInlineTranslationStore: import("zustand").UseBoundStore, "persist"> & { persist: { setOptions: (options: Partial>) => void; clearStorage: () => void; rehydrate: () => void | Promise; hasHydrated: () => boolean; onHydrate: (fn: (state: State & Action) => void) => () => void; onFinishHydration: (fn: (state: State & Action) => void) => () => void; getOptions: () => Partial>; }; }>; export declare const useStatus: (editor: LexicalEditor) => TranslateStatus | undefined; export declare const useIsIdle: () => boolean; export declare const useIsTranslating: () => boolean; export declare const useIsTranslated: () => boolean; export declare const useTargetLanguage: () => string; export {};