/** * Modify from https://github.com/ionic-team/stencil-ds-output-targets/blob/main/packages/react-output-target/react-component-lib/createOverlayComponent.ts * MIT License https://github.com/ionic-team/stencil-ds-output-targets/blob/main/LICENSE */ import React from 'react'; import { OverlayEventDetail } from './interfaces'; import { StencilReactForwardedRef } from './utils'; interface OverlayElement extends HTMLElement { present: () => Promise; dismiss: (data?: any, role?: string | undefined) => Promise; } export interface ReactOverlayProps { children?: React.ReactNode; isOpen: boolean; onDidDismiss?: (event: CustomEvent) => void; onDidPresent?: (event: CustomEvent) => void; onWillDismiss?: (event: CustomEvent) => void; onWillPresent?: (event: CustomEvent) => void; } export declare const createOverlayComponent: (tagName: string, controller: { create: (options: any) => Promise; }, customElement?: any) => React.ForwardRefExoticComponent; }> & React.RefAttributes>; export {};