import { GitHubAccessor } from '@struktoai/mirage-core/accessor/github'; 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 } 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 GitHubConfig, type GitHubConfigRedacted } from '@struktoai/mirage-core/core/github/config'; export interface GitHubResourceState { type: string; config: GitHubConfigRedacted; defaultBranch: string; truncated: boolean; } export declare class GitHubResource extends BaseResource implements Resource { readonly kind: string; readonly cachesReads: boolean; readonly sizesAlwaysKnown: boolean; readonly supportsSnapshot: boolean; readonly indexTtl: number; readonly config: GitHubConfig; readonly accessor: GitHubAccessor; private constructor(); static create(config: GitHubConfig): Promise; open(): Promise; commands(): readonly RegisteredCommand[]; ops(): readonly RegisteredOp[]; readFile(p: PathSpec): Promise; readdir(p: PathSpec): Promise; stat(p: PathSpec): Promise; glob(paths: readonly PathSpec[], prefix?: string): Promise; deltaHook(): DeltaHook; getState(): Promise; loadState(_state: GitHubResourceState): Promise; } //# sourceMappingURL=github.d.ts.map