import type { SlotRegistry } from '@teambit/harmony'; import type { LinkProps } from '@teambit/base-react.navigation.link'; import type { ConsumeMethod } from '@teambit/ui-foundation.ui.use-box.menu'; import type { LaneModel } from '@teambit/lanes.ui.models.lanes-model'; import type { ComponentID } from '@teambit/component-id'; import type { ComponentModel } from '../component-model'; export type NavPluginProps = { displayName?: string; ignoreQueryParams?: boolean; hideInMinimalMode?: boolean; } & LinkProps; export type NavPlugin = { props: NavPluginProps; order?: number; }; export type OrderedNavigationSlot = SlotRegistry; export type ConsumePluginOptions = { viewedLane?: LaneModel; hide?: boolean; disableInstall?: boolean; }; export type ConsumePluginProps = { id: ComponentID; packageName: string; latest?: string; componentModel?: ComponentModel; options?: ConsumePluginOptions; authToken?: string; }; export type ConsumePlugin = (props: ConsumePluginProps) => ConsumeMethod | undefined; export type ConsumeMethodSlot = SlotRegistry;