import { type StoreMetaFields } from './shared/storeRead.js'; export interface DesignerError { error: string; message: string; hint?: string; } export declare function isDesignerError(result: unknown): result is DesignerError; export interface RecordDesignDecisionInput { projectId?: string; area: string; summary: string; details?: string; } export interface RecordDesignDecisionOutput { id: string; timestamp: string; path: string; location: 'project'; } export declare function recordDesignDecision(input: RecordDesignDecisionInput): Promise; export interface SyncTokensInput { projectId?: string; fileKey: string; forceRefresh?: boolean; } export interface DesignToken { name: string; type: 'color' | 'number' | 'string' | 'boolean' | 'float'; value: unknown; description?: string; collection?: string; mode?: string; } export interface SyncTokensOutput { path: string; tokens: { colors: number; numbers: number; strings: number; total: number; }; timestamp: string; source: string; } export declare function syncTokens(input: SyncTokensInput): Promise; export interface ReviewFigmaInput { projectId?: string; fileKey: string; nodeId: string; scope?: 'full' | 'accessibility' | 'consistency'; } export interface ReviewFinding { severity: 'info' | 'warning' | 'error'; category: string; message: string; principle?: string; } export interface ReviewFigmaOutput { component: { name: string; type: string; id: string; }; findings: ReviewFinding[]; principlesChecked: number; timestamp: string; } interface DesignPrinciple { id: string; title: string; description: string; category: string; checks?: string[]; } export declare function reviewFigma(input: ReviewFigmaInput): Promise; export interface UpsertPrincipleInput { projectId?: string; id?: string; title: string; description: string; category: string; checks?: string[]; } export interface UpsertPrincipleOutput { id: string; path: string; action: 'created' | 'updated'; timestamp: string; } export declare function upsertPrinciple(input: UpsertPrincipleInput): Promise; export interface ListPrinciplesInput { projectId?: string; category?: string; } export interface ListPrinciplesOutput { principles: DesignPrinciple[]; total: number; path: string; } export interface CheckParityInput { projectId?: string; fileKey: string; } export interface TokenDiff { name: string; collection?: string; type?: string; oldValue?: unknown; newValue?: unknown; } export interface CheckParityOutput { added: TokenDiff[]; removed: TokenDiff[]; changed: TokenDiff[]; unchanged_count: number; drift_detected: boolean; timestamp: string; source: string; } export declare function checkParity(input: CheckParityInput): Promise; export interface TokensLookupInput { projectId?: string; category?: string; } export interface TokensLookupOutput { tokens: DesignToken[]; total: number; categories: string[]; source: string | null; synced_at: string | null; path: string; } export declare function tokensLookup(input: TokensLookupInput): Promise; export interface DriftDetectionInput { projectId?: string; } export interface DriftEntry { token_name: string; expected: string; actual: string; file: string; format: 'css' | 'tailwind' | 'swift' | 'json'; } export interface DriftDetectionOutput { drifted: DriftEntry[]; scanned_files: number; total_tokens_checked: number; drift_detected: boolean; timestamp: string; } export declare function driftDetection(input: DriftDetectionInput): Promise; export interface FigmaParityInput { projectId?: string; component: string; figma_node_id?: string; } export interface FigmaParityOutput { component: string; status: 'pending_figma_integration' | 'compared'; figma_node_id: string | null; message: string; timestamp: string; } export declare function figmaParity(input: FigmaParityInput): Promise; export declare function listPrinciples(input: ListPrinciplesInput): Promise; export type EvalType = 'token-drift' | 'component-parity' | 'motion-review' | 'design-compliance' | 'visual-review' | 'accessibility'; export type EvalScope = 'component' | 'page' | 'project'; export type FindingSeverity = 'critical' | 'warning' | 'info'; export interface EvalFinding { severity: FindingSeverity; category: string; message: string; location?: string; expected?: string; actual?: string; suggestion?: string; } export interface LogEvalInput { projectId?: string; evalType: EvalType; scope: EvalScope; target: string; score: number; summary: string; findings: EvalFinding[]; platform?: string; branch?: string; commit?: string; evaluator?: string; requestedBy?: string; tags?: string[]; } export interface LogEvalOutput { id: string; grade: string; score: number; findingCounts: { critical: number; warning: number; info: number; }; previousEvalId: string | null; path: string; timestamp: string; } export declare function logEval(input: LogEvalInput): Promise; export interface ListEvalsInput { projectId?: string; evalType?: EvalType; scope?: EvalScope; target?: string; minScore?: number; maxScore?: number; tags?: string[]; limit?: number; } export interface EvalSummary { id: string; eval_type: EvalType; scope: EvalScope; target: string; score: number; grade: string; summary: string; finding_counts: { critical: number; warning: number; info: number; }; tags: string[]; timestamp: string; } export interface ListEvalsOutput extends StoreMetaFields { evals: EvalSummary[]; total: number; path: string; } export declare function listEvals(input: ListEvalsInput): Promise; export interface EvalHistoryInput { projectId?: string; evalType: EvalType; target?: string; } export interface EvalHistoryPoint { id: string; score: number; grade: string; finding_counts: { critical: number; warning: number; info: number; }; timestamp: string; summary: string; } export interface EvalHistoryOutput { eval_type: EvalType; target: string; history: EvalHistoryPoint[]; trend: 'improving' | 'declining' | 'stable' | 'insufficient_data'; delta: number | null; path: string; } export declare function evalHistory(input: EvalHistoryInput): Promise; export {}; //# sourceMappingURL=designer.d.ts.map