/** * Structural recognition of expected local-embedding unavailability. * * The local-inference provider owns a typed `LOCAL_INFERENCE_UNAVAILABLE` * failure with a stable `reason` field. When the backend or capability is * absent by design, keyword recall is the intended degraded mode — that must * not fill `RECENT_ERRORS` or escalate on every ordinary query. Core must not * import `plugin-local-inference` (dependency edge runs the other way), so this * predicate matches the documented `code`/`modelType`/`reason` shape only. * * `invalid_input`, `invalid_output`, lookalike codes with a foreign reason, and * unknown failures remain reportable. */ export interface ModelProviderFailureDetails { code?: string; modelType?: string; provider?: string; reason?: string; } /** Read the stable cross-package error fields exposed by model providers. */ export declare function modelProviderFailureDetails(error: unknown): ModelProviderFailureDetails; /** * True when `error` is the local provider's expected embedding-unavailable * state that should fail open to keyword recall without diagnostic escalation. */ export declare function isExpectedLocalEmbeddingUnavailability(error: unknown): boolean;