import { DeepClient } from './client.js';
import React from 'react';
import { Id } from './minilinks.js';
export declare class CatchErrors extends React.Component<{
    error?: any;
    onMounted?: (setError: (error?: any) => void) => void;
    errorRenderer?: (error: Error, reset: () => any) => React.ReactNode;
    reset?: () => any;
    children: any;
}, any> {
    reset: () => any;
    constructor(props: any);
    static getDerivedStateFromError(error: any): {
        error: any;
    };
    componentDidCatch(error: any, errorInfo: any): void;
    componentDidMounted(): void;
    errorRenderer: (error: any, reset: any) => React.JSX.Element;
    render(): any;
}
export declare function evalClientHandler(options: {
    value: string;
    deep: DeepClient;
    input?: any;
}): Promise<{
    error?: any;
    data?: any;
}>;
export declare const ClientHandler: React.NamedExoticComponent<ClientHandlerProps>;
export interface ClientHandlerRendererProps {
    Component: any;
    fillSize?: boolean;
    onClose?: () => any;
    [key: string]: any;
}
export declare const ClientHandlerRenderer: React.NamedExoticComponent<ClientHandlerRendererProps>;
export interface ClientHandlerProps extends Partial<ClientHandlerRendererProps> {
    linkId: Id;
    handlerId?: Id;
    context?: Id[];
    ml?: any;
    error?: any;
    onClose?: () => any;
    ErrorComponent: any;
    [key: string]: any;
}
export declare function useFindClientHandler({ linkId, handlerId, context, ml, onClose, fillSize, ...props }: ClientHandlerProps): any;
