import { type PackedFolder } from "@nylorun/agents"; import { type AgentFolderDiagnostic } from "@nylorun/core/folder"; import { type ExplainedAgent } from "@nylorun/core/engine"; import { type StackDeps } from "../stack/commands.js"; export { initCommand, initUsage } from "./init.js"; export declare const checkUsage = "nylorun check [...] [--fix] [--explain] [--json]\n\nCompiles each agent folder (default .) offline, with the compiler the Runtime runs, and prints\nevery problem by file, line and column. A folder holds AGENT.md; a folder without one checks each\nsubfolder that has one. Exits 1 when a folder does not compile. Reads no Runtime.\n\nA problem one edit fixes says (fixable with --fix): an unknown key with one did-you-mean, CRLF\nline ends, and secrets in a SKILL.md, which go in AGENT.md's skills block.\n\n --fix make those edits in the folder's files, print each, then\n check again; nothing is written without it, and a file\n that changed since it was checked is left as it is\n --explain print each engine feature the agent and its subagents get\n (agent-folder/2 declares them; agent-folder/1 gets them all\n by default), with the tools and text blocks each adds\n --json print { \"folders\": [{ path, ok, manifest?, diagnostics }] }\n for CI: whether each folder compiles, the manifest it\n compiles to, and every diagnostic, each fixable one with\n its fix; with --fix, also what was fixed and what was not;\n with --explain, the features as explain"; /** The agent folders under `dir`: `dir` when it holds an `AGENT.md`, else each subfolder that does. */ export declare function agentFolders(dir: string): Promise; /** Packs the folder, or a `CliError` naming why it cannot be. */ export declare function packed(folder: string): Promise; /** A folder's diagnostics as lines, each path relative to `cwd`; `fixable` marks those with a fix. */ export declare function diagnosticLines(folder: string, cwd: string, diagnostics: readonly AgentFolderDiagnostic[], fixable?: boolean): string[]; /** `check --explain`'s lines for one folder: each agent, then each feature, on or off. */ export declare function explainLines(agents: readonly ExplainedAgent[]): string[]; /** `nylorun check [dir…] [--fix] [--json]` */ export declare function checkCommand(deps: StackDeps, args: readonly string[]): Promise;