/** * Observational Memory progress indicator component. * Shows when OM is observing or reflecting on conversation history. */ import { Container } from '@earendil-works/pi-tui'; import { defaultOMProgressState } from '@mastra/core/agent-controller'; import type { OMBufferedStatus, OMProgressState, OMStatus } from '@mastra/core/agent-controller'; 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[]; } interface OMContextIndicator { plain: string; styled: string; messageCells: number; memoryCells: number; unusedCells: number; } interface OMContextIndicatorOptions { messages?: (segment: string) => string; memory?: (segment: string) => string; unused?: (segment: string) => string; showBar?: boolean; } export declare function formatOMContextIndicator(state: OMProgressState, options?: OMContextIndicatorOptions): OMContextIndicator; /** @deprecated Use formatOMContextIndicator for the unified context display. */ export declare function formatOMStatus(state: OMProgressState): string; //# sourceMappingURL=om-progress.d.ts.map