/** * The pi-ai `nylorun tenant models set` loads, read from nylorun's `@earendil-works/pi-ai` * devDependency: the version the build and the tests used, so bumping the dependency (Dependabot, * or by hand) moves the version the on-demand install pins with it. scripts/check-package.mjs * asserts the dependency is an exact version. */ export declare const PI_AI_VERSION: string; /** What `nylorun tenant models set` uses of pi-ai: its provider registry and login flows. */ export interface PiAi { createProvider: typeof import("@earendil-works/pi-ai").createProvider; builtinModels: typeof import("@earendil-works/pi-ai/providers/all").builtinModels; stream: typeof import("@earendil-works/pi-ai/api/openai-completions").stream; streamSimple: typeof import("@earendil-works/pi-ai/api/openai-completions").streamSimple; } /** * pi-ai, with its provider SDKs about 100 MB, is not a dependency of nylorun, so * `npx nylorun` stays small: only `nylorun tenant models set` needs it. It loads pi-ai from beside nylorun * when it resolves there (the workspace, or a project that installs it), else from * `/lib/pi-ai-/`, which it installs with npm on first use. */ export declare function loadPiAi(options?: { home?: string; /** Import pi-ai from beside nylorun (tests). */ packages?: () => Promise; /** Install `PI_AI_VERSION` into a directory holding its package.json (tests). */ install?: (directory: string) => Promise; log?: (line: string) => void; }): Promise;