katoikia-app/web-ui/web-react/node_modules/primereact/overlayservice/overlayservice.d.ts

17 lines
480 B
TypeScript

import React from 'react';
type OverlayServiceActionType = 'overlay-click';
interface OverlayServiceParams {
originalEvent: React.SyntheticEvent;
target: HTMLElement;
}
export interface OverlayServiceOptions {
on(action: OverlayServiceActionType, fn: any): void;
emit(action: OverlayServiceActionType, params?: OverlayServiceParams): void;
off(action: OverlayServiceActionType, fn: any): void;
}
export declare const OverlayService: OverlayServiceOptions;