import type { AttentionProfileCues } from './attention-profile-training.js'; import { type AttentionAliases, type GroupTraining } from './attention-samples.js'; import type { AttentionClassifier } from './attention-classifier.js'; type Phase = 'off' | 'preparing' | 'ready' | 'training' | 'error'; type Step = 'checking' | 'download' | 'install' | 'train' | 'start'; type Evaluation = Record; type GroupChange = { scope: string; scopes?: string[]; samples?: GroupTraining; profile?: AttentionProfileCues; trainDefaults?: true; defaultScope?: string; version?: string; guard: () => void; signal?: AbortSignal; allowStart?: boolean; }; export declare class ManagedAttention { private readonly directory; private settings; private phase; private step; private failure; private worker; private candidate; private readonly children; private restart; private restartDelay; private setup; private running; private readonly groupAttempts; private active; private sequence; private closed; private disabling; private lifecycle; constructor(directory: string); restore(): Promise; status(): { phase: Phase; enabled: boolean; custom: boolean; evaluation: Evaluation | undefined; error: string | undefined; step: Step | undefined; usable: boolean; }; details(): Promise<{ model: { name: string | undefined; files: string; }; phase: Phase; enabled: boolean; custom: boolean; evaluation: Evaluation | undefined; error: string | undefined; step: Step | undefined; usable: boolean; }>; groupStatus(scope: string): { active: boolean; saved: boolean; selected: boolean; evaluation: Evaluation | undefined; attempt: Evaluation | undefined; versions: { id: string | undefined; createdAt: number | undefined; current: boolean; profile: { roleAliases: number; roleScenes: number; relationshipAliases: number; relationshipScenes: number; } | undefined; sceneCoverage: { scene: "background" | "topic" | "other" | "close" | "address" | "question" | "banter" | "share"; training: number; holdout: number; }[]; persona: { calls: { total: number; correct: number; baseline: number; training: number; }; nonCalls: { total: number; correct: number; baseline: number; training: number; } | undefined; scenes: { total: number; correct: number; baseline: number; training: number; } | undefined; relationshipAliases: number; } | undefined; }[]; }; trainGroups(scopes: string[], samples: GroupTraining, guard: () => void, signal: AbortSignal, defaultScope?: string): Promise; trainProfile(scopes: string[], profile: AttentionProfileCues, guard: () => void, signal: AbortSignal): Promise; trainDefault(scope: string, profile: AttentionProfileCues, guard: () => void, signal: AbortSignal): Promise; private learnGroups; changeGroup(change: GroupChange): Promise; change(action: 'enable' | 'disable' | 'train' | 'reset'): Promise; private beginReplace; close(): Promise; private readSettings; private persist; private start; private clearRestart; private restartIfEnabled; private track; private stop; private get models(); private get packages(); private prepare; private installPackages; private downloadNpmModel; private downloadModel; private launch; private adopt; private replace; profileAliases(scope: string | undefined, roleRevision: string | undefined, relationshipRevision: string | undefined, defaultScope?: string): AttentionAliases; classify: AttentionClassifier; } export {}; //# sourceMappingURL=managed-attention.d.ts.map