import type { DialogConfig, DialogElement } from '@liwe3/webcomponents';
export type { DialogConfig, DialogElement };
/**
* Shows a dialog with the given configuration.
*
* IMPORTANT: Make sure to add the component to your layout first!
* The component initializes the dialog web component system.
*
* @param config - The dialog configuration
* @returns The dialog element instance (or undefined if called during SSR)
*
* @example
* ```typescript
* // In your +layout.svelte
* import { Dialogs } from '@liwe3/webcomponents-svelte';
*
*
* // In any component
* import { dialogAdd } from '@liwe3/webcomponents-svelte';
*
* const dialog = dialogAdd({
* title: 'Delete File',
* body: '
Are you sure you want to delete this file?
',
* buttons: [
* {
* label: 'Delete',
* backgroundColor: '#dc3545',
* onclick: () => {
* console.log('File deleted');
* dialog?.close();
* }
* },
* {
* label: 'Cancel',
* onclick: () => {
* dialog?.close();
* }
* }
* ],
* modal: true,
* escToClose: true,
* clickToClose: true
* });
* ```
*/
export declare const dialogAdd: (config: DialogConfig) => DialogElement | undefined;
interface $$__sveltets_2_IsomorphicComponent = any, Events extends Record = any, Slots extends Record = any, Exports = {}, Bindings = string> {
new (options: import('svelte').ComponentConstructorOptions): import('svelte').SvelteComponent & {
$$bindings?: Bindings;
} & Exports;
(internal: unknown, props: {
$$events?: Events;
$$slots?: Slots;
}): Exports & {
$set?: any;
$on?: any;
};
z_$$bindings?: Bindings;
}
declare const Dialogs: $$__sveltets_2_IsomorphicComponent, {
[evt: string]: CustomEvent;
}, {}, {}, string>;
type Dialogs = InstanceType;
export default Dialogs;
//# sourceMappingURL=Dialogs.svelte.d.ts.map