import { type ErrorMessage } from './errorText.js'; import type { IFileExplorerClient, IFileExplorerProvider } from './lib/fileExplorer.js'; import type { TreeNode, UploadNode, UploadSession } from './lib/types.js'; interface IFileExplorerContextValue { uploadSessionMap: Map; uploadQueue: string[]; addUploadSession: (storageName: string, targetPath: string, uploadNodes: UploadNode[], client: IFileExplorerClient, provider: IFileExplorerProvider, targetNode: TreeNode, refreshTargetNode: (targetNode: TreeNode) => Promise) => string; getUploadSessionById: (sessionId: string) => UploadSession | undefined; getUploadQueueIndex: (sessionId: string) => number; startUploadSession: (sessionId: string) => Promise; } interface IFileExplorerProviderProps { children: React.ReactNode; /** Why something failed, in the reader's words, such as a localized message for an API * error's code. Return undefined for an error it has no words for: the explorer then names * a storage service's refusal by its code itself, and shows the error's own text as detail * under the place's sentence, so nothing the error said is lost. */ errorMessage?: ErrorMessage | undefined; } export declare function FileExplorerProvider({ children, errorMessage }: IFileExplorerProviderProps): import("react").JSX.Element; export declare function useFileExplorer(): IFileExplorerContextValue; export {};