import { InjectionToken } from '@angular/core'; import { Observable } from 'rxjs'; export interface KaduTranslationRequest { text: string; fromLang: string; toLang: string; } /** * Library-neutral translator contract. The consumer application provides an * implementation that talks to the AI service of their choice (OpenAI, * DeepL, custom backend, etc.). Returning an Observable allows the directive * to cancel in-flight requests via unsubscribe when the source text changes. */ export interface KaduMultiLangTranslator { translate(req: KaduTranslationRequest): Observable; } export declare const KADU_MULTI_LANG_TRANSLATOR: InjectionToken;