import React from 'react';
import type { CustomMessageType } from './index-types';
/**
 *
 *  name: as it appears at ThemeProps' message.customTypes key
 *  CustomMessageComponent
 *  defaultProps: Props for the wrapper Message
 *  ErrorBoundary: to recover in case it fails
 */
export interface CustomMessageArgs {
    name: string;
    component: React.FC<any>;
    defaultProps?: Record<string, any>;
    errorBoundary?: any;
}
export declare const customMessage: ({ name, component: CustomMessageComponent, defaultProps, errorBoundary, }: CustomMessageArgs) => CustomMessageType;
