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 { FileStat } from '@struktoai/mirage-core/types'; import { GridFSAccessor } from '../../accessor/gridfs.ts'; import { type GridFSConfig, type GridFSConfigRedacted } from './config.ts'; import { type DeltaHook } from '@struktoai/mirage-core/watch/index'; export interface GridFSResourceState { type: string; config: GridFSConfigRedacted; } export declare class GridFSResource extends BaseResource implements Resource { readonly kind: string; readonly cachesReads: boolean; readonly supportsSnapshot: boolean; readonly sizesAlwaysKnown: boolean; readonly indexTtl: number; readonly prompt: string; readonly config: GridFSConfig; readonly accessor: GridFSAccessor; readonly opsMap: Record; constructor(config: GridFSConfig); open(): Promise; close(): Promise; commands(): readonly RegisteredCommand[]; ops(): readonly RegisteredOp[]; 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): 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; glob(paths: readonly PathSpec[], prefix?: string): Promise; deltaHook(): DeltaHook; getState(): Promise; loadState(_state: GridFSResourceState): Promise; } //# sourceMappingURL=gridfs.d.ts.map