import { type StateKey } from "../state/rest-cache.mts"; import type { CheckAnnotation } from "../types.mts"; export interface AnnotationCacheOptions { stateKey: StateKey; headSha?: string; } /** * Fetches all inline annotations for a check run. * * When `cacheOpts` is provided, the result is cached by `checkRunId` — safe * because callers only pass `cacheOpts` for COMPLETED check runs (a re-run * mints a new check-run node id, so a COMPLETED run's annotations are * immutable once fetched). */ export declare function fetchCheckRunAnnotations(checkRunId: string, cacheOpts?: AnnotationCacheOptions): Promise;