/** * ResearchMapper — Maps research findings to design spec requirements. * * Analyzes user research findings and generates concrete accessibility, * UX, and interaction requirements that should be added to component * and page specs. */ import type { ResearchFinding, ResearchPersona, ResearchStore } from "../research/engine.js"; import type { AnySpec } from "../specs/types.js"; export interface SpecRequirement { source: "research"; findingId: string; finding: string; requirement: string; category: "accessibility" | "ux" | "interaction" | "content" | "performance"; priority: "must" | "should" | "could"; targetSpecs: string[]; } export interface ResearchMapping { requirements: SpecRequirement[]; unmapped: ResearchFinding[]; coverage: number; } /** * Map research findings to spec requirements. * Returns requirements that should be added to existing specs. */ export declare function mapResearchToSpecs(store: ResearchStore, specs: AnySpec[]): ResearchMapping; /** Generate a research-backed accessibility checklist for a spec. */ export declare function generateA11yChecklist(spec: AnySpec, requirements: SpecRequirement[]): string[]; /** Map persona pain points to design requirements. */ export declare function mapPersonaRequirements(personas: ResearchPersona[]): SpecRequirement[];