import type { RegisteredCommand } from '@struktoai/mirage-core/commands/config'; import type { RegisteredOp } from '@struktoai/mirage-core/ops/registry'; import { BaseResource } from '@struktoai/mirage-core/resource/base'; import type { FindOptions, Resource } from '@struktoai/mirage-core/resource/base'; import { PathSpec } from '@struktoai/mirage-core/types'; import type { CapacityResult, FileStat } from '@struktoai/mirage-core/types'; import { DiskAccessor } from '../../accessor/disk.ts'; import { type DeltaHook } from '@struktoai/mirage-core/watch/index'; export interface DiskResourceOptions { root: string; } export interface DiskResourceState { type: string; files: Record; modes?: Record; } export declare class DiskResource extends BaseResource implements Resource { readonly kind: "disk"; readonly cachesReads: boolean; readonly sizesAlwaysKnown: boolean; readonly indexTtl: number; readonly prompt = "{prefix}\n Local disk filesystem. Mirrors the configured root directory.\n Standard commands: ls, cat, head, tail, grep, wc, find, tree, mkdir, touch, cp, mv, rm, tee."; readonly root: string; readonly accessor: DiskAccessor; readonly opsMap: Record; constructor(options: DiskResourceOptions); storageId(): string; open(): Promise; statfs(): Promise; ops(): readonly RegisteredOp[]; commands(): readonly RegisteredCommand[]; streamPath(p: PathSpec): AsyncIterable; readFile(p: PathSpec): Promise; writeFile(p: PathSpec, data: Uint8Array): Promise; appendFile(p: PathSpec, data: Uint8Array): Promise; readdir(p: PathSpec): Promise; stat(p: PathSpec): Promise; exists(p: PathSpec): Promise; mkdir(p: PathSpec, options?: { recursive?: boolean; }): Promise; rmdir(p: PathSpec): Promise; unlink(p: PathSpec): Promise; rename(src: PathSpec, dst: PathSpec): Promise; truncate(p: PathSpec, length: number): Promise; copy(src: PathSpec, dst: PathSpec): Promise; rmR(p: PathSpec): Promise; du(p: PathSpec): Promise; find(p: PathSpec, options?: FindOptions): Promise; deltaHook(): DeltaHook; glob(paths: readonly PathSpec[], prefix?: string): Promise; getState(): Promise; loadState(state: DiskResourceState): Promise; } //# sourceMappingURL=disk.d.ts.map