import type { IntervalFnOptions } from "svelteshareds"; /** * Performance.memory * * @see https://developer.mozilla.org/en-US/docs/Web/API/Performance/memory */ export interface MemoryInfo { /** * The maximum size of the heap, in bytes, that is available to the context. */ jsHeapSizeLimit: number; /** * The total allocated heap size, in bytes. */ totalJSHeapSize: number; /** * The currently active segment of JS heap, in bytes. */ usedJSHeapSize: number; } export interface MemoryOptions extends IntervalFnOptions { interval?: number; } /** * Reactive Memory Info. * * @param options */ export declare function memory(options?: MemoryOptions): { is_supported: import("svelte/store").Readable; result: import("svelte/store").Readable; }; export declare type MemoryReturn = ReturnType;