import type { BackendCapability } from "./backend-capability.js"; export type ProbeAllBackendCapabilities = () => Promise; export type ProbeOneBackendCapability = (backend: string) => Promise; /** * Keeps backend discovery responsive without making installation state permanent. * Refreshes are single-flight so all bot instances share one set of CLI probes. */ export declare class BackendCapabilityCache { private readonly probeAll; private readonly probeOne; private capabilities; private readonly capabilitiesByBackend; private refreshInFlight?; constructor(initial: BackendCapability[], probeAll: ProbeAllBackendCapabilities, probeOne: ProbeOneBackendCapability); snapshot(): BackendCapability[]; get(backend: string): BackendCapability | undefined; availableBackends(): string[]; refresh(): Promise; recheck(backend: string): Promise; private replace; private update; }