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> = T extends undefined ? never : T;

declare type __VLS_Prettify<T> = {
    [K in keyof T]: T[K];
} & {};

declare type __VLS_TypePropsToRuntimeProps<T> = {
    [K in keyof T]-?: {} extends Pick<T, K> ? {
        type: PropType<__VLS_NonUndefinedable<T[K]>>;
    } : {
        type: PropType<T[K]>;
        required: true;
    };
};

declare type __VLS_WithDefaults<P, D> = {
    [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
        default: D[K];
    }> : 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<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ContextSwitcherProps>, {
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<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ContextSwitcherProps>, {
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 { }
