import { ComponentOptionsMixin } from 'vue'; import { ComponentProvideOptions } from 'vue'; import { DefineComponent } from 'vue'; import { ExtractPropTypes } from 'vue'; import { LocationQuery } from 'vue-router'; import { PropType } from 'vue'; import { PublicProps } from 'vue'; declare type __VLS_NonUndefinedable = T extends undefined ? never : T; declare type __VLS_Prettify = { [K in keyof T]: T[K]; } & {}; declare type __VLS_TypePropsToRuntimeProps = { [K in keyof T]-?: {} extends Pick ? { type: PropType<__VLS_NonUndefinedable>; } : { type: PropType; required: true; }; }; declare type __VLS_WithDefaults = { [K in keyof Pick]: K extends keyof D ? __VLS_Prettify : P[K]; }; /** * LeafLink app names */ declare const APPS: { readonly MARKETPLACE: "marketplace"; readonly PAYMENTS: "payments"; }; declare type AppValues = (typeof APPS)[keyof typeof APPS]; export declare interface ContextSwitcherProps { /** * The current app that is active. Choices are 'marketplace' | 'payments'. */ activeApp: AppValues; /** * Portal access to both marketplace and payments. */ portalAccess?: { commercePortal: boolean; paymentsPortal: boolean; }; /** * Url to replace the other app if current user does not have portal access. */ limitedAccessUrl: string; routeQuery?: LocationQuery; } declare const _default: DefineComponent, { portalAccess: () => { commercePortal: boolean; paymentsPortal: boolean; }; routeQuery: () => {}; }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, { click: (urlInfo: { from: string; to: string; }) => void; switch: (evt: MouseEvent, urlInfo: { from: string; to: string; }) => void; }, string, PublicProps, Readonly, { portalAccess: () => { commercePortal: boolean; paymentsPortal: boolean; }; routeQuery: () => {}; }>>> & Readonly<{ onClick?: ((urlInfo: { from: string; to: string; }) => any) | undefined; onSwitch?: ((evt: MouseEvent, urlInfo: { from: string; to: string; }) => any) | undefined; }>, { portalAccess: { commercePortal: boolean; paymentsPortal: boolean; }; routeQuery: LocationQuery; }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>; export default _default; export { }