@mastra/core
Version:
Mastra is a framework for building AI-powered applications and agents with a modern TypeScript stack.
22 lines • 861 B
TypeScript
import type { HarnessDisplayState, HarnessDisplayStateListener, HarnessEvent } from './types.js';
export declare const DEFAULT_DISPLAY_STATE_SUBSCRIPTION_OPTIONS: {
readonly windowMs: 250;
readonly maxWaitMs: 500;
};
export declare const CRITICAL_DISPLAY_STATE_EVENT_TYPES: ReadonlySet<HarnessEvent['type']>;
export declare class DisplayStateScheduler {
private readonly listener;
private readonly windowMs;
private readonly maxWaitMs;
private disposed;
private pendingState;
private windowTimer;
private maxWaitTimer;
constructor(listener: HarnessDisplayStateListener, windowMs: number, maxWaitMs: number);
notify(state: HarnessDisplayState, isCritical: boolean): void;
dispose(): void;
private flushPending;
private flush;
private clearTimers;
}
//# sourceMappingURL=display-state-scheduler.d.ts.map