import { default as React } from 'react'; import { FileNode, MenuItem } from '../../../types'; import { ExplorerProps, ExplorerViewMode } from '../types'; export declare function useExplorer({ initialPath, windowId }: ExplorerProps): { t: import('i18next').TFunction<"translation", undefined>; getFile: (path: string[]) => FileNode | null; viewMode: ExplorerViewMode; changeView: (mode: ExplorerViewMode) => void; sort: { key: "name" | "size" | "type" | "modified"; dir: "asc" | "desc"; }; toggleSort: (key: "name" | "size" | "type" | "modified") => void; showFolders: boolean; toggleFolders: () => void; showHidden: boolean; visibleEntries: (entries: [string, FileNode][]) => [string, FileNode][]; addrHistory: string[][]; history: string[][]; historyIndex: number; selectedItem: { name: string; type: "file" | "folder" | "drive" | "root" | "external_link" | "app_shortcut"; key: string; } | null; selection: import('../../../hooks/useMultiSelect').MultiSelectApi; orderedKeys: () => string[]; refreshKey: number; setRefreshKey: React.Dispatch>; containerRef: React.RefObject; isSyntheticAfterTouch: () => boolean; address: string; setAddress: React.Dispatch>; dragOver: string | null; setDragOver: React.Dispatch>; contextMenu: { visible: boolean; x: number; y: number; targetItem: { key: string; item: FileNode; } | null; }; setContextMenu: React.Dispatch>; currentPath: string[]; currentFolder: FileNode | null; handleAddressGo: () => void; handleNavigate: (name: string) => Promise; handleBack: () => void; handleForward: () => void; handleUp: () => void; handleNavigateToPath: (path: string[]) => void; fileTouchGestures: import('../../../hooks/useTapGestures').TapGestureHandlers; handleFileAreaTouchStart: (e: React.TouchEvent) => void; isRoot: boolean; nodeSizeBytes: (item: FileNode) => number | null; nodeTypeLabel: (item: FileNode) => string; formatBytes: (bytes: number | null) => string; detailsDate: (item?: FileNode) => string; handleContextMenu: (e: React.MouseEvent, key: string, item: FileNode) => void; handleBackgroundContextMenu: (e: React.MouseEvent) => void; closeContextMenu: () => void; menuItems: MenuItem[]; handleDragStart: (e: React.DragEvent, key: string) => void; handleDropOnFolder: (e: React.DragEvent, targetKey: string, targetItem: FileNode) => void; childCount: number; isInRecycleBin: boolean; handleKeyDown: (e: React.KeyboardEvent) => void; };