import type { AgentId, AgentSpec } from '../agents/registry'; /** Body content of the per-agent instruction file in `--include` (default) mode. * When wrapped by `mergeMarkerBlock`, the actual disk content becomes: * * * @AGENTS.md * * * Exported as both the body (for callers that need just the inner line) and * the fully wrapped form (for callers that need a ready-to-write string). */ export declare const AGENTS_INCLUDE_BODY = "@AGENTS.md"; export declare const AGENTS_INCLUDE_CONTENT = "\n@AGENTS.md\n\n"; /** Legacy unwrapped include line — files written by pre-v0.8 mswai. Detected * by reconcile so they convert to the wrapped form transparently. */ export declare const LEGACY_AGENTS_INCLUDE_CONTENT = "@AGENTS.md\n"; /** What the per-agent instruction file (CLAUDE.md / .cursorrules / …) currently is. */ export type InstructionFileState = { kind: 'native'; } | { kind: 'absent'; } | { kind: 'include'; } | { kind: 'copy'; } | { kind: 'legacy-symlink'; } | { kind: 'symlink-wrong'; target: string | null; } | { kind: 'mismatch'; }; /** Drift state for a single template-driven file (settings.json, a hook script, an mcp.json target). */ export type DriftState = 'ok' | 'missing' | 'drift'; export declare function inspectInstructionFile(agent: AgentSpec, cwd: string, agentsAbs: string): InstructionFileState; /** * 'ok' from the user's perspective — the file usefully points at AGENTS.md * by some valid mechanism. Drives status / ready calculations. */ export declare function instructionStateIsOk(s: InstructionFileState): boolean; export declare function inspectTemplateFile(destAbs: string, srcAbs: string): DriftState; export declare function inspectStringFile(destAbs: string, expected: string): DriftState; /** * Recursive walk of `srcDir`, returning every regular file as a POSIX-form * path relative to `srcDir`. Used to enumerate templates/hook/scripts/ * (which ships topic subdirectories like update-check/, mlua-lsp/) * so inspect/update can compare them 1:1 * against on-disk files. * Empty array on missing/unreadable root. */ export declare function listTemplateNames(srcDir: string): string[]; /** * Where each agent reads its project-scope MCP config. * undefined → not yet supported by mswai (e.g. Codex uses TOML at ~/.codex/). * * Exported here so status / init / update agree on locations without * each redeclaring the map. */ export declare const MCP_TARGETS: Partial>; export declare function inspectMcpTargets(cwd: string, agents: AgentId[], checkTarget: (a: AgentId, abs: string) => S): Record; export declare function skillsDirHasEntries(cwd: string, dir: string): boolean;