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 { Resource, ResourceStateBase } from '@struktoai/mirage-core/resource/base'; import { PathSpec } from '@struktoai/mirage-core/types'; import type { FileStat } from '@struktoai/mirage-core/types'; import type { DeltaHook } from '@struktoai/mirage-core/watch/index'; import type { HfHubAccessor } from '../../accessor/hf_hub.ts'; /** * The shared body of the three Hub *repository* resources. * * Separate from `HfResource` (resource/hf_buckets/base.ts) on purpose: that * one drives OpenDAL against Hugging Face Buckets, which is a different * product -- Xet-backed mutable object storage with no commits and no * revisions. These three are git repositories, read through the Hub's own * tree API and written as commits. * * Python has no twin of this file: its three resources each spell their own * body, the way its four hf resources always have. The asymmetry is recorded * in spec/layout_exceptions.json. */ export declare abstract class HfHubResource extends BaseResource implements Resource { abstract readonly prompt: string; abstract readonly accessor: HfHubAccessor; abstract getState(): Promise; readonly cachesReads: boolean; readonly sizesAlwaysKnown: boolean; readonly supportsSnapshot: boolean; readonly indexTtl: number; readonly opsMap: Record; open(): Promise; commands(): readonly RegisteredCommand[]; ops(): readonly RegisteredOp[]; streamPath(p: PathSpec): AsyncIterable; readFile(p: PathSpec): Promise; readdir(p: PathSpec): Promise; stat(p: PathSpec): Promise; exists(p: PathSpec): Promise; deltaHook(): DeltaHook; glob(paths: readonly PathSpec[], prefix?: string): Promise; loadState(_state: unknown): Promise; } //# sourceMappingURL=base.d.ts.map