UNPKG

@mescius/dspdfviewer

Version:
20 lines (19 loc) 865 B
//@ts-ignore import React, { Component } from 'react'; import { ConfirmationDialogProps, ConfirmationDialogState, ConfirmButton } from './Types'; export declare class ConfirmationDialog extends Component<ConfirmationDialogProps, ConfirmationDialogState> { private _confirmationPromise?; private _resolve?; private _confirmationText; private _detailsText; private _level?; state: ConfirmationDialogState; private _customCssClass; private _resolveConfirmation; //@ts-ignore confirm(confirmationText?: string | JSX.Element, level?: "info" | "warning" | "warn" | "debug" | "error", title?: string, buttons?: ConfirmButton[], customCssClass?: "gc-old-school-notify", detailsText?: string | JSX.Element): Promise<boolean | ConfirmButton>; cancel(): void; //@ts-ignore //@ts-ignore render(): React.JSX.Element; }