import type { Logger, VariablesService } from '@pikku/core/services'; import type { AIAgentRunnerService } from '@pikku/core/services'; /** * Build the AI agent runner for `pikku dev` from env. * * Deployed agent units get their runner wired by the bundler; the dev server * has no equivalent, so agents 503 with AIProviderNotConfiguredError unless we * construct one here. When an OpenAI-compatible base URL + key are present * (fabric injects LITELLM_PROXY_URL/LITELLM_API_KEY; the standard OPENAI_* * vars are also honored) we point a single openai-compatible provider at it and * register it under every common provider prefix. Returns undefined when no AI * env is configured (agents stay disabled, with the clear downstream error) or * when the AI SDK packages aren't installed in the project. */ export declare function createDevAIAgentRunner({ logger, projectRoot, variables, }: { logger: Logger; projectRoot: string; variables: VariablesService; }): Promise;