import { type Snippet } from 'svelte';
type Props = {
openOnMount?: boolean;
title?: string;
size?: 'xs' | 'sm' | 'lg' | 'xl';
hideMode?: 'hide' | 'destroy';
style?: string;
bodyStyle?: string;
zIndex?: number;
onClose?: () => void;
onOpen?: () => void;
children?: Snippet;
buttons?: Snippet<[closeDialog: () => void]>;
};
/**
* ## Dialog
* A generic modal dialog.
*
* ### Props
* | Name | Required | Type | Default |
* | --- | --- | --- | --- |
* | `openOnMount` | `false` | `boolean` | `false` |
* | `title` | `false` | `string` | `''` |
* | `size` | `false` | `'xs', 'sm', 'lg', 'xl'` | `'xl'` |
* | `hideMode` | `false` | `'hide', 'destroy'` | `'destroy'` |
* | `style` | `false` | `string` | `''` |
* | `bodyStyle` | `false` | `string` | `''` |
* | `zIndex` | `false` | `number` | `1000` |
* | `onClose` | `false` | `() => void` | -- |
* | `onOpen` | `false` | `() => void` | -- |
* | `children` | `false` | `Snippet` | -- |
* | `buttons` | `false` | `Snippet` | -- |
*
* ### Snippets
* - `children`: The default content of the dialog. This snippet is displayed in the body of the dialog.
* - `buttons`: This snippet is displayed at the bottom of the dialog. It typically will have at least a close button,
* but can contain any number of buttons or other html elements. A `closeDialog` function is provided as a convenience to close the dialog.
*
* ### Exported Functions
* - `closeDialog`: Closes the dialog
* - `openDialog`: Opens the dialog
*
* @example
* ```svelte
*
* ```
*/
declare const Dialog: import("svelte").Component void;
openDialog: () => void;
}, "">;
type Dialog = ReturnType;
export default Dialog;