export type ContextSurface = 'claude' | 'codex' | 'cursor' | 'copilot' | 'gemini' | 'any'; export type ContextEmitFormat = | 'claude_md' | 'agents_md' | 'cursor_rules' | 'skill_md' | 'anthropic_system_prompt' | 'brain_includes' | 'mcp_context_loader'; export interface ContextValidationDiagnostic { severity: 'error' | 'warning'; rule: string; message: string; location?: string; } export interface ContextAST { [key: string]: any; warnings: ContextValidationDiagnostic[]; } export interface ContextCompileResult { files: Record; ast: ContextAST; diagnostics: ContextValidationDiagnostic[]; } export interface ContextCompilerOptions { formats?: ContextEmitFormat[]; } export declare class ContextCompileError extends Error { constructor(message: string); } export declare class ContextCompiler { constructor(options?: ContextCompilerOptions); compile(composition: any, agentToken: string, outputPath?: string): ContextCompileResult; } export declare function createContextCompiler(options?: ContextCompilerOptions): ContextCompiler;