import { type RetrievedChunk } from '@kernlang/core'; import type { AsyncRuntimeCapabilityProvider } from '@kernlang/core/runner'; export interface CliAsyncNetCapabilityOptions { readonly allowedOrigins: readonly string[]; readonly fetch?: typeof fetch; } export declare function createCliAsyncNetCapability(options: CliAsyncNetCapabilityOptions): AsyncRuntimeCapabilityProvider; export interface CliAsyncLlmCapabilityOptions { readonly response: string; } export declare function createCliAsyncLlmCapability(options: CliAsyncLlmCapabilityOptions): AsyncRuntimeCapabilityProvider; export interface CliAsyncOpenAICompatibleLlmCapabilityOptions { readonly apiKey: string; readonly model: string; readonly baseUrl?: string; readonly fetch?: typeof fetch; } export interface CliAsyncRagAnswerCapabilityOptions { readonly llm: AsyncRuntimeCapabilityProvider; readonly assertRetrievedChunks?: (query: string, chunks: readonly RetrievedChunk[]) => void; /** * Per-call timeout for the nested llm.complete invocation, in milliseconds. * Forwarded to {@link invokeRunnerCapabilityAsync}, which defaults it when * omitted. See --capability-timeout-ms. */ readonly timeoutMs?: number; } export declare function createCliAsyncOpenAICompatibleLlmCapability(options: CliAsyncOpenAICompatibleLlmCapabilityOptions): AsyncRuntimeCapabilityProvider; export declare function createCliAsyncRagAnswerCapability(options: CliAsyncRagAnswerCapabilityOptions): AsyncRuntimeCapabilityProvider;