import { View } from '@nativescript/core/ui/core/view'; import { EventData } from '@nativescript/core/data/observable'; import { ViewBase } from '@nativescript/core/ui/core/view-base'; declare module '@nativescript/core/ui/core/view/view' { interface View { showBottomSheet(options: BottomSheetOptions): ViewBase; _setupAsRootView(context: any): void; callLoaded(): void; callUnloaded(): void; _removeFromFrameStack(): void; } } export interface ShownBottomSheetData extends EventData { context?: any; closeCallback?: Function; } export declare const shownInBottomSheetEvent = "shownInBottomSheet"; export declare const showingInBottomSheetEvent = "showingInBottomSheet"; export interface BottomSheetOptions { view: string | ViewBase; context?: any; animated?: boolean; dismissOnBackgroundTap?: boolean; dismissOnDraggingDownSheet?: boolean; closeCallback?: Function; trackingScrollView?: string; transparent?: boolean; ignoreTopSafeArea?: boolean; ignoreBottomSafeArea?: boolean; } export declare abstract class ViewWithBottomSheetBase extends View { protected _closeBottomSheetCallback: Function; _onDismissBottomSheetCallback: Function; _bottomSheetFragment: any; protected abstract _hideNativeBottomSheet(parent: any, whenClosedCallback: any): any; protected _bottomSheetContext: any; _raiseShownBottomSheetEvent(): void; _bottomSheetClosed(): void; protected abstract _showNativeBottomSheet(parent: View, options: BottomSheetOptions): any; protected _commonShowNativeBottomSheet(parent: View, options: BottomSheetOptions): void; protected _raiseShowingBottomSheetEvent(): void; closeBottomSheet(...args: any[]): void; showBottomSheet(options: BottomSheetOptions): ViewBase; }