import type { AgentId } from '../types.js';
/**
 * Re-apply the active rules preset for (agent, version) into its version
 * home when the composed source set has drifted since the last time this ran.
 * Returns true when the version-home rules file was (re)written.
 *
 * No-cwd fingerprint on purpose: the version-home rules file never includes
 * the project layer (see `staleness/writers/rules.ts` — project rules are
 * resolved separately, at launch, into the workspace `AGENTS.md` by
 * `compileRulesForProject`). Fingerprinting with a cwd would pull the project
 * layer's subrules into the comparison and trigger a pointless version-home
 * rewrite every time a project's own `.agents/rules/` changes.
 *
 * Silent on any failure (no rules.yaml, unknown preset, unsupported agent) —
 * mirrors `syncResourcesToVersion`'s own catch-and-skip for rules: a bad
 * preset must never block a launch, and this now also runs on the hot path.
 */
export declare function applyActiveRulesPresetAtRun(agent: AgentId, version: string, versionHome: string): boolean;
