import type { RegisteredCommand } from '../../commands/config.ts'; import { RAMAccessor } from '../../accessor/ram.ts'; import type { RegisteredOp } from '../../ops/registry.ts'; import { PathSpec, type FileStat } from '../../types.ts'; import { BaseResource, type FindOptions, type Resource } from '../base.ts'; import { RAMStore, type RAMAttrs } from './store.ts'; export interface RAMResourceState { type: string; files?: Record; dirs?: string[]; modified?: Record; attrs?: Record; } export declare class RAMResource extends BaseResource implements Resource { readonly kind: "ram"; readonly cachesReads: boolean; readonly sizesAlwaysKnown: boolean; readonly indexTtl: number; readonly store: RAMStore; readonly accessor: RAMAccessor; readonly prompt = "{prefix}\n In-memory filesystem. Files and directories are created on demand.\n Standard commands: ls, cat, head, tail, grep, wc, find, tree, mkdir, touch, cp, mv, rm, tee, echo > file."; readonly opsMap: Record; open(): Promise; ops(): readonly RegisteredOp[]; commands(): readonly RegisteredCommand[]; streamPath(path: PathSpec): AsyncIterable; readFile(path: PathSpec): Promise; writeFile(path: PathSpec, data: Uint8Array): Promise; appendFile(path: PathSpec, data: Uint8Array): Promise; readdir(path: PathSpec): Promise; stat(path: PathSpec): Promise; exists(path: PathSpec): Promise; mkdir(path: PathSpec, options?: { recursive?: boolean; }): Promise; rmdir(path: PathSpec): Promise; unlink(path: PathSpec): Promise; rename(src: PathSpec, dst: PathSpec): Promise; truncate(path: PathSpec, length: number): Promise; copy(src: PathSpec, dst: PathSpec): Promise; rmR(path: PathSpec): Promise; du(path: PathSpec): Promise; find(path: PathSpec, options?: FindOptions): Promise; glob(paths: readonly PathSpec[], prefix?: string): Promise; getState(): RAMResourceState; loadState(state: RAMResourceState): void; } //# sourceMappingURL=ram.d.ts.map