/** * External dependencies */ import type { MouseEvent, KeyboardEvent, ReactNode } from 'react'; export declare type DialogInputEvent = KeyboardEvent | MouseEvent; declare type BaseProps = { children: ReactNode; onConfirm: (event: DialogInputEvent) => void; }; declare type ControlledProps = BaseProps & { onCancel: (event: DialogInputEvent) => void; isOpen: boolean; }; declare type UncontrolledProps = BaseProps & { onCancel?: (event: DialogInputEvent) => void; isOpen?: never; }; export declare type OwnProps = ControlledProps | UncontrolledProps; export {}; //# sourceMappingURL=types.d.ts.map