import { Probes, Reading, Stage } from './stages.js'; export interface Api { getSync: () => Reading | null; get: (callback: (reading: Reading | null) => void) => void; } export interface StartOptions { /** Absent or true: store as the core build does. Anything else, a getter that throws included: read and write no cookie and no storage. */ store?: boolean; } export interface DeferredApi extends Api { start: (options?: StartOptions) => void; } /** The two public calls, bound to one session. The real window enters here as untrusted input; outside a browser there is nothing to read. */ export declare function open(probes: Probes, lab?: Stage): Api; /** The same calls, plus start(): until it runs nothing is read, not even `window`. The first start() decides for the page view. */ export declare function deferred(probes: Probes): DeferredApi;