import { Dispatch, ReactNode, SetStateAction } from 'react'; import { Intent } from '@blueprintjs/core/src/common/intent'; export type DialogStateType = { isOpen: boolean; title: string; content: ReactNode; actions: ReactNode; state: any; canClose: boolean; }; export declare const defaultDialogContext: { isOpen: boolean; title: string; content: ReactNode; actions: ReactNode; state: any; canClose: boolean; }; export declare function setupDialog(): { dialog: DialogStateType; open: (d: Partial) => void; close: () => void; setDialog: Dispatch>; state: any; setState: (state: any) => void; }; export declare const DialogContext: import("react").Context<{ dialog: DialogStateType; open: (d: Partial) => void; close: () => void; setDialog: Dispatch>; setState: Dispatch>; state: any; }>; export declare const useDialog: () => { dialog: DialogStateType; open: (d: Partial) => void; close: () => void; setDialog: Dispatch>; setState: Dispatch>; state: any; }; export declare function DialogProvider({ children }: { children: ReactNode; }): import("react/jsx-runtime").JSX.Element; export declare function DialogComponent(): import("react/jsx-runtime").JSX.Element; interface DialogPromptState { value: string; intent: Intent; helperText: string; key: string; } interface DialogPromptProps extends Partial, Partial { closeButtonText?: string; submitButtonText?: string; message?: string; placeholder?: string; showInput?: boolean; onClose?: (value: string) => boolean | undefined | Promise; onSubmit?: (value: string) => boolean | undefined | any | Promise; } export declare function useDialogPrompt(): { prompt: ({ closeButtonText, submitButtonText, message, placeholder, value, showInput, onClose, onSubmit, helperText, intent, ...props }: DialogPromptProps) => Promise; close: () => void; open: (d: Partial) => void; }; export {};