@mescius/dsimageviewer
Version:
Document Solutions Image Viewer
24 lines (23 loc) • 694 B
TypeScript
/// <reference path="../../vendor/i18next.d.ts" />
//@ts-ignore
import { i18n } from "i18next";
export declare type ProgressDialogSink = {
onCancel: (error: string) => void;
onComplete: () => void;
onProgress: (value: number, message: string) => void;
cancelled?: Function;
};
/**
* Confirm button type.
**/
export declare type ConfirmButton = "Yes" | "No" | "Ok" | "Cancel" | "Confirm" | "Close" | "Dismiss";
export declare type ConfirmationDialogState = {
showModal: boolean;
title?: string;
buttons?: ConfirmButton[];
detailsExpanded?: boolean;
};
export declare type ConfirmationDialogProps = {
title?: string;
in17n: i18n;
};