import { JsonValue } from "xbsj-renderer/dist-node/xr-base-utils"; import { Destroyable } from "./base"; export type getFileSelectFuncType = (files: string[], dirs: string[]) => Promise<({ file: string; } | { dir: string; } | undefined)>; export declare function getSubEntriesFromDir(dirHandle: FileSystemDirectoryHandle): Promise<{ files: string[]; dirs: string[]; }>; export declare function getFileText(fileHandle: FileSystemFileHandle): Promise; export declare function getFileJson(fileHandle: FileSystemFileHandle): Promise; export declare function getFileArrayBuffer(fileHandle: FileSystemFileHandle): Promise; export declare class LocalRootDir extends Destroyable { private _rootDirHandle; get rootDirHandle(): FileSystemDirectoryHandle; constructor(_rootDirHandle: FileSystemDirectoryHandle); getSubFilesAndDirs(): Promise<{ files: string[]; dirs: string[]; }>; getDir(dirNames: string[]): Promise; getFile(dirNames: string[], fileName: string): Promise; } export declare class LocalFileServer extends Destroyable { private _prefix; private _startRootDirId; private _dirMap; get prefix(): string; constructor(_prefix: string); getRootDirId(recentId?: string): Promise; getRootDir(rootDirId: string): LocalRootDir | undefined; getFile(path: string): Promise; getText(path: string): Promise; getArrayBuffer(path: string): Promise; getJson(path: string): Promise; getLocalFilePath(exts?: string[], recentId?: string, selectFunc?: getFileSelectFuncType): Promise; } export declare const defaultLocalFileServer: LocalFileServer; export declare function defaultGetLocalFilePath(exts?: string[], recentId?: string, selectFunc?: getFileSelectFuncType): Promise;