export declare type RedirectEvent = { url: string; }; export declare type WebBrowserWindowFeatures = Record; export declare type WebBrowserOpenOptions = { /** * Color of the toolbar in either #AARRGGBB or #RRGGBB format. */ toolbarColor?: string; browserPackage?: string; /** * Whether the toolbar should be hiding when a user scrolls the website. */ enableBarCollapsing?: boolean; /** Android only */ /** * Color of the secondary toolbar in either #AARRGGBB or #RRGGBB format. */ secondaryToolbarColor?: string; /** * Whether the browser should show the title of website on the toolbar. */ showTitle?: boolean; enableDefaultShareMenuItem?: boolean; /** * Whether browsed website should be shown as separate entry in Android recents/multitasking view. * Default: `false` */ showInRecents?: boolean; /** iOS only */ controlsColor?: string; dismissButtonStyle?: 'done' | 'close' | 'cancel'; readerMode?: boolean; /** * **Web:** name to assign to the popup window. */ windowName?: string; /** * **Web:** features to use with `window.open()` */ windowFeatures?: string | WebBrowserWindowFeatures; }; export declare type WebBrowserAuthSessionResult = WebBrowserRedirectResult | WebBrowserResult; export declare type WebBrowserCustomTabsResults = { defaultBrowserPackage?: string; preferredBrowserPackage?: string; browserPackages: string[]; servicePackages: string[]; }; export declare enum WebBrowserResultType { /** * iOS only */ CANCEL = "cancel", /** * iOS only */ DISMISS = "dismiss", /** * Android only */ OPENED = "opened", LOCKED = "locked" } export declare type WebBrowserResult = { type: WebBrowserResultType; }; export declare type WebBrowserRedirectResult = { type: 'success'; url: string; }; export declare type ServiceActionResult = { servicePackage?: string; }; export declare type WebBrowserMayInitWithUrlResult = ServiceActionResult; export declare type WebBrowserWarmUpResult = ServiceActionResult; export declare type WebBrowserCoolDownResult = ServiceActionResult;