@struktoai/mirage-core
Version:
A Unified Virtual Filesystem For AI Agents
26 lines • 1.31 kB
TypeScript
import type { DatabricksVolumeAccessor } from '../../accessor/databricks_volume.ts';
import type { ByteSource } from '../../io/types.ts';
import type { DirListing, FileStat, PathSpec } from '../../types.ts';
import { BaseVFS } from '../base.ts';
import type { Handed } from '../types.ts';
/**
* DatabricksVolume's functions over its accessor, which a host package builds
* over its own transport.
*/
export declare class DatabricksVolumeVFS extends BaseVFS<DatabricksVolumeAccessor> {
readonly readsRanges: boolean;
storageLocation(): string;
readdir(path: PathSpec, handed?: Handed): Promise<FileStat[] | DirListing>;
read(path: PathSpec, _handed?: Handed, offset?: number, size?: number | null): Promise<ByteSource> | AsyncIterable<Uint8Array>;
stat(path: PathSpec): Promise<FileStat>;
exists(path: PathSpec): Promise<boolean>;
write(path: PathSpec, data: ByteSource): Promise<void>;
create(path: PathSpec): Promise<void>;
mkdir(path: PathSpec, parents?: boolean): Promise<void>;
unlink(path: PathSpec): Promise<void>;
rmdir(path: PathSpec): Promise<void>;
rmR(path: PathSpec): Promise<void>;
rename(src: PathSpec, dst: PathSpec): Promise<void>;
copy(src: PathSpec, dst: PathSpec): Promise<void>;
}
//# sourceMappingURL=databricks_volume.d.ts.map