import type React from 'react';
import type { Nullable } from '../../typings/utility-types.js';
export type TGetRootNode = () => Nullable<Element>;
export type TSetRootNode = (e: Nullable<React.ReactInstance>) => void;
export interface TRootNodeSubscription {
    remove: () => void;
}
export interface InstanceWithRootNode {
    getRootNode: TGetRootNode;
    addRootNodeChangeListener?: (callback: (node: Nullable<Element>) => void) => TRootNodeSubscription;
}
interface ComponentWithDefaultRootNode {
    defaultRootNode?: Element | null;
}
interface ComponentWithKonturReactUI {
    __KONTUR_REACT_UI__?: string;
    displayName?: string;
}
interface DecoratableClassComponent extends ComponentWithDefaultRootNode, ComponentWithKonturReactUI {
    new (...args: any[]): React.Component;
}
export declare function rootNode<T extends DecoratableClassComponent>(Component: T): T;
export declare const isInstanceWithRootNode: (instance: unknown) => instance is InstanceWithRootNode;
export {};
