import type { RefCallback } from 'react'; import React from 'react'; export type ElRefs = { [elPath: string]: React.Component; }; export type InitialStates = { [elPath: string]: { type: React.ComponentClass; state: {}; }; }; export type CachedRefHandler = { origRef: undefined | React.Ref; handler: RefCallback; }; export type CachedRefHandlers = { [elPath: string]: CachedRefHandler; }; export declare function replaceState(elRef: React.Component, nextState: {}): void;