import { type ProcessFootprint } from "../process-footprint.ts";
import type { ResidentStoreSize } from "../session-resident-store-size.ts";
import { type HostKernelListing } from "./kernel-registry-read.ts";
import { type MemoryReportSessionSource, type TuiRenderCacheTotals } from "./memory-report-registry.ts";
export interface MainThreadMemory {
    readonly jscHeapSize?: number;
    readonly heapUsed: number;
    readonly external: number;
    readonly footprint: ProcessFootprint;
}
/** The report keeps the registry's full listing; the shared reader validates the wire shape once. */
type KernelMemoryEntry = HostKernelListing;
export interface MemoryReportCore {
    readonly sessionId: string;
    readonly takenAt: string;
    readonly pid: number;
    readonly main: MainThreadMemory;
    readonly kernels: readonly KernelMemoryEntry[];
    readonly residentStore: ResidentStoreSize;
    readonly tuiRenderCache?: TuiRenderCacheTotals;
    /** Frame-level figure from the TUI (senpi#1960): byte cost of the lines the last frame holds. */
    readonly tui?: {
        readonly previousLinesBytes: number;
    };
    readonly heapSnapshot?: string;
    readonly reporterErrors?: Readonly<Record<string, string>>;
}
/** The core sections plus one section per extension reporter, keyed by the reporter's name. */
export type MemoryReport = MemoryReportCore & Readonly<Record<string, unknown>>;
export declare function buildMemoryReport(source: MemoryReportSessionSource, heapSnapshot?: string): MemoryReport;
export {};
//# sourceMappingURL=memory-report-build.d.ts.map