18 lines
544 B
TypeScript
18 lines
544 B
TypeScript
|
import * as React from 'react';
|
||
|
import type { ModalFuncProps } from '../interface';
|
||
|
export interface HookModalProps {
|
||
|
afterClose: () => void;
|
||
|
config: ModalFuncProps;
|
||
|
onConfirm?: (confirmed: boolean) => void;
|
||
|
/**
|
||
|
* Do not throw if is await mode
|
||
|
*/
|
||
|
isSilent?: () => boolean;
|
||
|
}
|
||
|
export interface HookModalRef {
|
||
|
destroy: () => void;
|
||
|
update: (config: ModalFuncProps) => void;
|
||
|
}
|
||
|
declare const _default: React.ForwardRefExoticComponent<HookModalProps & React.RefAttributes<HookModalRef>>;
|
||
|
export default _default;
|