/** * Observational Memory progress indicator component. * Shows when OM is observing or reflecting on conversation history. */ import { Container } from '@mariozechner/pi-tui'; import { defaultOMProgressState } from '@mastra/core/harness'; import type { OMBufferedStatus, OMProgressState, OMStatus } from '@mastra/core/harness'; export type { OMBufferedStatus, OMProgressState, OMStatus }; export { defaultOMProgressState }; /** * Component that displays OM progress in the status line area. * Shows a compact indicator when observation/reflection is happening. */ export declare class OMProgressComponent extends Container { private state; private statusText; constructor(); updateProgress(progress: { pendingTokens: number; threshold: number; thresholdPercent: number; observationTokens: number; reflectionThreshold: number; reflectionThresholdPercent: number; }): void; startObservation(cycleId: string, _tokensToObserve: number): void; endObservation(): void; startReflection(cycleId: string): void; endReflection(): void; failOperation(): void; getStatus(): OMStatus; private updateDisplay; private renderProgressBar; private spinnerFrame; private getSpinner; render(maxWidth: number): string[]; } /** * Format OM observation threshold for status bar. * Compact levels (most → least info): * "full": messages 12.5k/30k ↓2.1k * undefined: msg 12.5k/30k ↓2.1k * "noBuffer": msg 12.5k/30k * "percentOnly": msg 42% * * @param labelStyler - Optional function to style the label text (for animation). * Receives the raw label string, returns styled string. */ export declare function formatObservationStatus(state: OMProgressState, compact?: 'percentOnly' | 'noBuffer' | 'full', labelStyler?: (label: string) => string): string; /** * Format OM reflection threshold for status bar. * Compact levels (most → least info): * "full": memory 8.2k/40k ↓1.2k * undefined: mem 8.2k/40k ↓1.2k * "noBuffer": mem 8.2k/40k * "percentOnly": mem 21% * * @param labelStyler - Optional function to style the label text (for animation). * Receives the raw label string, returns styled string. */ export declare function formatReflectionStatus(state: OMProgressState, compact?: 'percentOnly' | 'noBuffer' | 'full', labelStyler?: (label: string) => string): string; /** * @deprecated Use formatObservationStatus and formatReflectionStatus instead */ export declare function formatOMStatus(state: OMProgressState): string; //# sourceMappingURL=om-progress.d.ts.map