/** Bounded, read-only recommendations. The host owns retrieval, permissions and opening a 360. */ export interface DecisionCandidate { key: string; label: string; description: string; } export interface DecisionProvider { name: string; choose(query: string, candidates: readonly DecisionCandidate[], signal: AbortSignal): Promise; } export interface DecisionReply { choice: string; probabilities: Record; confidence: number; } export interface DecisionResult { status: 'suggested' | 'abstained'; reason: string; candidateKey?: string; provider: string; elapsedMs: number; total: number; eligible: number; } export declare const NO_MATCH = "__none__"; /** No fuzzy certainty: the baseline recommends only one exact label or key. */ export declare const exactDecisionProvider: DecisionProvider; export declare function recommendCandidate(input: { query: string; candidates: readonly DecisionCandidate[]; /** Required, fail-closed, called before provider access and again on the selected candidate. */ mayRead(candidate: DecisionCandidate): Promise; /** Includes user, tenant and screen revision. A late answer must not apply to another context. */ isCurrent(): boolean; provider?: DecisionProvider; timeoutMs?: number; }): Promise;