import { SvelteComponentTyped } from "svelte"; export declare const modalQueue: Writable<{ component: any; title: string; strict?: boolean; }[]>; /** * Closes the first modal in the current modalQueue */ export declare const dismissModal: () => void; /** * * Adds a Modal to be rendered * * @param component * json object to render the contents of a modal * */ export declare const queueModal: (component: { component: any; strict?: boolean | undefined; title: string; }) => void; import { type Writable } from 'svelte/store'; declare const __propDef: { props: Record; events: { [evt: string]: CustomEvent; }; slots: {}; }; export type ModalControllerProps = typeof __propDef.props; export type ModalControllerEvents = typeof __propDef.events; export type ModalControllerSlots = typeof __propDef.slots; /** * ModalController * * Component that queues displays Modals. Should be placed at the top of a page * to allow the modals spawned to appear over all other elements * * Modals are queued with the `queueModal` function * Data to render the modal should be in the following format: * * `{ component: any; strict?: boolean; title: string }` * * component is a svelte component that will be rendered as the modal's content * * strict controls whether the modal can be dismissed by the user through `Escape`, the backdrop or the close button * * title sets the modals title */ export default class ModalController extends SvelteComponentTyped { } export {};