import React, { Component, HTMLAttributes } from 'react'; import { AdaptivityProps } from '../../hoc/withAdaptivity'; import { HasPlatform } from '../../types'; import { ItemClickHandler } from './ActionSheetContext'; export interface ActionSheetProps extends HTMLAttributes, HasPlatform, AdaptivityProps { header?: React.ReactNode; text?: React.ReactNode; onClose?: VoidFunction; /** * Desktop only */ toggleRef: Element; /** * Desktop only */ popupDirection?: 'top' | 'bottom'; /** * iOS only */ iosCloseItem: React.ReactNode; } export interface ActionSheetState { closing: boolean; } export declare type CloseCallback = () => void; export declare type AnimationEndCallback = (e?: AnimationEvent) => void; declare class ActionSheet extends Component { constructor(props: ActionSheetProps); state: ActionSheetState; elRef: React.RefObject; private transitionFinishTimeout; static defaultProps: Partial; onClose: CloseCallback; onItemClick: ItemClickHandler; get isDesktop(): boolean; waitTransitionFinish(eventHandler: AnimationEndCallback): void; render(): JSX.Element; } declare const _default: typeof ActionSheet; export default _default;