import type { OperatorMethodOutput } from '../../types/generated/foundation-client-types.js'; import type { OpsEvent } from '../../../events/ops.js'; /** ops.memory.get output, the full governor snapshot. */ export type MemoryGovernorSnapshotResult = OperatorMethodOutput<'ops.memory.get'>; /** The OPS_MEMORY_PRESSURE event payload (a tier change or a tripwire firing). */ export type MemoryPressurePayload = Extract; /** Human MB (the governor already reports MB as numbers; round to 1 decimal). */ export declare function formatMb(mb: number | null | undefined): string; /** Human byte size for a cache footprint estimate. */ export declare function formatMemoryBytes(bytes: number | null | undefined): string; /** A plain-language note for the current tier (the governor's posture at this tier). */ export declare function memoryTierNote(tier: MemoryGovernorSnapshotResult['tier']): string; /** * The /health memory (doctor) rows, the honest account of the daemon defending * its footprint. Order: tier + posture, budget vs RSS, heap, tier thresholds, * per-cache footprints the governor can shrink, which deferrable jobs are * paused, and the leak-tripwire state. */ export declare function memoryStatusLines(snapshot: MemoryGovernorSnapshotResult): string[]; /** * The attention line OPS_MEMORY_PRESSURE produces: a one-liner naming the new * tier and the RSS/budget, plus a distinct escalation when the leak tripwire * fires (the daemon is about to exit for a clean supervisor restart). Returned * as a single string so the notice/attention surface can push it directly. */ export declare function memoryPressureLine(event: MemoryPressurePayload): string; /** Severity for the notice feed: critical tier (or a tripwire) is critical; high is a warning. */ export declare function memoryPressureLevel(event: MemoryPressurePayload): 'info' | 'warning' | 'critical'; //# sourceMappingURL=status.d.ts.map