export default PromptDialog; type PromptDialog = { $on?(type: string, callback: (e: any) => void): () => void; $set?(props: Partial>): void; }; /** * A modal prompt dialog. It shows the OK and Cancel buttons as well as a textbox, just like * `window.prompt()`. * @see https://w3c.github.io/aria/#alertdialog * @see https://www.w3.org/WAI/ARIA/apg/patterns/alertdialog/ * @see https://developer.mozilla.org/en-US/docs/Web/API/Window/prompt */ declare const PromptDialog: import("svelte").Component`. The text box is * labelled by the dialog `title` unless an `aria-label` or `aria-labelledby` is given here. */ textboxAttrs?: object | undefined; /** * Primary slot content. */ children?: Snippet<[]> | undefined; /** * Input slot content. */ input?: Snippet<[]> | undefined; } & Record, {}, "value" | "open">; type Props = { /** * Value entered on the textbox. */ value?: string | undefined; /** * Extra attributes for the ``. The text box is * labelled by the dialog `title` unless an `aria-label` or `aria-labelledby` is given here. */ textboxAttrs?: object | undefined; /** * Primary slot content. */ children?: Snippet<[]> | undefined; /** * Input slot content. */ input?: Snippet<[]> | undefined; }; import type { ModalProps } from '../../typedefs'; import type { DialogProps } from '../../typedefs'; import type { InputEventHandlers } from '../../typedefs'; import type { Snippet } from 'svelte';