UNPKG

@juspay/neurolink

Version:

The pipe layer of an AI nervous system: one interface connecting provider neurons to your application, across three inference types — generate, stream and decide. `decide` returns typed, calibrated judgements from a non-generative model (~400ms, ~$0.00002

28 lines (27 loc) • 1.31 kB
import type { ProxyRuntimeConfigListener, ProxyRuntimeConfigReloadListener, ProxyRuntimeConfigReloadResult, ProxyRuntimeConfigReloadSource, ProxyRuntimeConfigSnapshot, ProxyRuntimeConfigStatus, ProxyRuntimeConfigStoreOptions } from "../types/index.js"; /** Atomic last-known-good runtime configuration with file-triggered reloads. */ export declare class ProxyRuntimeConfigStore { private readonly options; private currentSnapshot; private status; private readonly listeners; private readonly reloadListeners; private reloadQueue; private reloadTimer; private configFileObserved; private envFileObserved; private currentEnvFileHash; private readonly watchListener; private constructor(); static create(options: ProxyRuntimeConfigStoreOptions): Promise<ProxyRuntimeConfigStore>; getSnapshot(): ProxyRuntimeConfigSnapshot; getStatus(): ProxyRuntimeConfigStatus; subscribe(listener: ProxyRuntimeConfigListener): () => void; subscribeReload(listener: ProxyRuntimeConfigReloadListener): () => void; reload(source?: ProxyRuntimeConfigReloadSource): Promise<ProxyRuntimeConfigReloadResult>; startWatching(): void; stopWatching(): void; private scheduleWatchReload; private performReload; private notifyReloadListeners; }