/** * Variant accessors for `/chunks`. Unlike most chifra endpoints, * `/chunks` selects its output via a `mode` enum (not boolean * flags). The seven mode-preselect variants cover the Go SDK's * `ChunksList` (= `mode=index`) and `ChunksPinsList` (= `mode=pins`) * directly. The two modifier variants below — `count` (returns * `Count[]`) and `check` (returns `ReportCheck[]`) — cover the Go * SDK's `ChunksCount` and `ChunksDiff`. Callers still pass `mode` * with these two; the variant just narrows the return type. */ import type { RequestFn } from '../client.js'; import type { components } from '../generated.js'; import { type Query, type VerbFn } from '../verbs.js'; type ChunksQuery = Query<'/chunks'>; type Envelope = { data?: T[]; }; export interface ChunksVerb extends VerbFn<'/chunks'> { /** `?mode=manifest` — the chain manifest. */ manifest: (query: Omit) => Promise>; /** `?mode=index` — index chunk records. */ index: (query: Omit) => Promise>; /** `?mode=blooms` — bloom filter chunks. */ blooms: (query: Omit) => Promise>; /** `?mode=pins` — pinned chunks. */ pins: (query: Omit) => Promise>; /** `?mode=addresses` — addresses contained in the chunk(s). */ addresses: (query: Omit) => Promise>; /** `?mode=appearances` — appearance entries within chunks. */ appearances: (query: Omit) => Promise>; /** `?mode=stats` — chunk statistics. */ stats: (query: Omit) => Promise>; /** * `?count=true` — record count only. Caller still picks `mode`; * the spec notes count works for some modes (manifest/index/pins). */ count: (query: Omit) => Promise>; /** * `?check=true` — internal-consistency check on the manifest, * index, or blooms. Caller picks the relevant `mode` and gets * back a `ReportCheck[]` instead of the polymorphic chunks union. */ check: (query: Omit) => Promise>; } export declare function makeChunksVerb(request: RequestFn): ChunksVerb; export {}; //# sourceMappingURL=chunks.d.ts.map