/** * Built-in Scheme Resolvers * * moduleResolver — reads Rill source files from the filesystem. * extResolver — returns extension values from a host-provided config map. */ import type { SchemeResolver } from './types/runtime.js'; /** * Resolves a module ID to Rill source text by reading a file. * * Config shape: `{ [moduleId: string]: string }` * - Each key is a module ID mapping to an absolute file path string. * The caller is responsible for resolving paths before passing them in. * * Error codes: * - RILL-R059 when config is not a plain object * - RILL-R050 when the module ID is absent from the config map * - RILL-R051 when the file cannot be read */ export declare const moduleResolver: SchemeResolver; /** * Resolves an extension name (or dot-path member) to a RillValue. * * Config shape: `Record` mapping extension name to value. * * Resource formats: * - `"qdrant"` — returns the full extension value from config. * - `"qdrant.search"` — returns the `search` member of the qdrant value. * * Dot-path: split by `.`, first segment is the extension name, * remaining segments traverse the dict structure of the extension value. * * Error codes: * - RILL-R052 when the extension name is absent from config * - RILL-R053 when a member path segment is not found in the extension value */ /** * Resolves a dot-path key to a value from a host-provided context config. * * Config shape: `Record` (flat or nested). * * Resource formats: * - `"timeout"` — returns the top-level `timeout` value from config. * - `"limits.max_tokens"` — traverses into `limits`, returns `max_tokens`. * * Dot-path: split by `.`, walk nested dicts at each segment. * * Error codes: * - RILL-R062 when the top-level key is absent from config * - RILL-R063 when an intermediate segment is not a dict */ export declare const contextResolver: SchemeResolver; export declare const extResolver: SchemeResolver;