import { CSSProperties } from 'react'; export interface LoaderSession { start: number; mounted: number; lastUnmount: number; } /** A loader that mounts within this gap after another one left continues the same animation. */ export declare const LOADER_CONTINUES_WITHIN_MS = 600; /** Seconds the current loading moment has been running at time `at` (ms); 0 when this is a new moment. */ export declare const loaderElapsed: (session: LoaderSession, at: number) => number; /** Elapsed seconds, read once when the loader first renders, and the loader registered while it is on screen. */ export declare const useLoaderElapsed: () => number; /** The CSS variable the animation delays subtract, so a loader that mounts late starts that far into the animation. */ export declare const elapsedStyle: (elapsed: number) => CSSProperties;