import type { ScaffoldConfig, StepEnablementEntry } from '../../types/index.js'; import type { MetaPromptFrontmatter } from '../../types/frontmatter.js'; import type { OutputContext } from '../../cli/output/context.js'; export interface OverlayState { steps: Record; knowledge: Record; reads: Record; dependencies: Record; /** * Cross-reads for each step (keyed by step slug). Populated via overlay-first * merge: `frontmatter.crossReads ∪ overlay.cross-reads-overrides` (spec §3.2). * Consumers can read `overlay.crossReads[slug]` as authoritative. */ crossReads: Record>; } /** * Resolve overlay state by building maps from meta-prompt frontmatter, * then optionally loading and applying a project-type overlay. * * Centralizes the logic previously inline in run.ts (Step 2b) so that * status, next, rework, and other commands can share the same resolution. */ export declare function resolveOverlayState(options: { config: ScaffoldConfig; methodologyDir: string; metaPrompts: Map; presetSteps: Record; output: OutputContext; }): OverlayState; //# sourceMappingURL=overlay-state-resolver.d.ts.map