import type { Problem, ToolRef } from "./types.js"; import { type TrustedModules } from "../../compiler/trustedModules.js"; export type ToolRefsResult = { refs: ToolRef[]; problems: []; } | { refs: null; problems: Problem[]; }; /** The module text is written into an import line, so it may hold no quote, * backslash, space, or newline. */ export declare const MODULE_PATH: RegExp; /** One `ToolRef` per function value. `dir` is the workflow's directory; a * relative `dir` is read against `cwd`, the working directory now. Every * tool that cannot be imported is reported, in order; the duplicate-name * check runs only when all of them can. * * A local tool needs its source file. Four kinds of function value have * none: one from a module compiled before Agency recorded source files * (recompile the module), one from a program `run` compiled for a * subprocess, a block, and the stub a checkpoint revives for a function * whose module this process never loaded. */ export declare function toolRefs(tools: unknown[], dir: string, cwd: string, trustedModules?: TrustedModules[]): ToolRefsResult;