/** * Retention bounds for the convenience scan-state projections (`useScanState` * and the manager's presence map). * * Safety bounds on a package-owned cache, not on delivery. They cap how many * peers a *derived view* remembers; they never drop an observation the consumer * asked for -- a consumer that wants every report iterates the scan session's * observation stream, whose budget is caller-supplied through `delivery`. Making * these tunable would let a dense environment grow unbounded retained state * inside a React render path, which is the failure they exist to prevent. */ export declare const MAX_PUBLIC_SCAN_STATE_ENTRIES = 256; export declare const MAX_PUBLIC_SCAN_STATE_BYTES: number; export declare function estimatePublicPeerRetentionBytes(peer: { readonly id: string; readonly name: string | null; readonly lastAdvertisement?: { readonly manufacturerData?: readonly { readonly data: Readonly; }[] | null; readonly serviceData?: readonly { readonly data: Readonly; }[] | null; } | null; }): number; //# sourceMappingURL=scan-state-budget.d.ts.map