import type { ResolvedBridgeRule } from './registry.js'; export interface BridgeContext { /** Current bridge chain depth (0 = top-level event, 1 = first bridge, etc.) */ depth: number; /** Source namespace that triggered this bridge */ sourceNamespace: string; /** Bridge name for audit trail */ bridgeName: string; } export interface BridgeResult { bridgeName: string; from: string; to: string; event: string; status: 'executed' | 'skipped_condition' | 'skipped_depth' | 'failed'; error?: string; } /** * Evaluate a simple condition expression against a result object. * Supports: field > value, field < value, field == value, field != value * * Examples: * "confidence > 0.7" * "prediction_error > 0.7" * "dimension == \"beliefs\"" */ export declare function evaluateCondition(condition: string, data: Record): boolean; /** * Interpolate a template string with values from data. * Replaces {{field}} with data[field]. * * Example: "Prediction {{outcome}}: {{summary}}" with {outcome: "correct", summary: "BTC > 100k"} * → "Prediction correct: BTC > 100k" */ export declare function interpolateTemplate(template: string, data: Record): string; /** * Check and execute bridge rules for a given event. * * @param rules - Bridge rules to evaluate (from BridgeRegistry.getRulesForEvent) * @param eventData - The result data from the source event * @param executePipeline - Callback to execute a pipeline in the target namespace * @param context - Current bridge context (for depth tracking) * @returns Array of bridge results */ export declare function checkBridges(rules: ResolvedBridgeRule[], eventData: Record, executePipeline: (namespace: string, text: string, metadata: Record) => Promise, context?: BridgeContext): Promise; //# sourceMappingURL=bridge.d.ts.map