import { ComponentType } from 'react'; import { PiralPlugin } from 'piral-core'; import { PiletModalsApi, BareModalComponentProps, ModalLayoutOptions } from './types'; export interface InitialModalDialog { /** * The name of the modal dialog. */ name: string; /** * The component to show representing the modal dialog. */ component: ComponentType>; /** * The default options for the modal dialog. */ defaults?: any; /** * The layout options for the modal dialog. */ layout?: ModalLayoutOptions; } /** * Available configuration options for the modals plugin. */ export interface ModalsConfig { /** * The initial modal dialogs. */ dialogs?: Array; /** * Defines how the next ID for the key is selected. * By default a random number is used. * * @param name The name of the modal dialog. */ selectId?(name: string): string; } /** * Creates new Pilet API extensions for support modal dialogs. */ export declare function createModalsApi(config?: ModalsConfig): PiralPlugin;