UNPKG

@grapecity/gcpdfviewer

Version:
18 lines (17 loc) 878 B
/// <reference path="../vendor/react/react.d.ts" /> //@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; 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; render(): React.JSX.Element; }