import { ExtractPropTypes } from 'vue'; import { ITabsProps, ITabsVm } from './tabs.type.js'; import { ISharedRenderlessParamUtils, ISharedRenderlessFunctionParams } from './shared.type.js'; import { a as tabNavPcProps } from './index-cada95ca.js'; /** * Copyright (c) 2022 - present TinyVue Authors. * Copyright (c) 2022 - present Huawei Cloud Computing Technologies Co., Ltd. * * Use of this source code is governed by an MIT-style license. * * THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL, * BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR * A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS. * */ declare const computedNavStyle: (state: ITabNavRenderlessParams['state']) => { transform: string; width?: string; }; declare const scrollIntoView: ({ parent, vm, state }: Pick) => () => void; declare const computedSizeName: (state: ITabNavRenderlessParams['state']) => 'width' | 'height'; declare const updated: ({ api, vm, state }: Pick) => () => void; declare const mounted: ({ api, parent }: Pick) => void; declare const beforeUnmount: ({ api, parent }: Pick) => void; declare const visibilityChangeHandler: (state: ITabNavRenderlessParams['state']) => () => void; declare const windowBlurHandler: (state: ITabNavRenderlessParams['state']) => () => void; declare const windowFocusHandler: (state: ITabNavRenderlessParams['state']) => () => void; declare const scrollToActiveTab: ({ parent, vm, state }: Pick) => () => void; declare const scrollPrev: ({ vm, state }: Pick) => () => void; declare const scrollNext: ({ vm, state }: Pick) => () => void; declare const changeTab: (api: ITabNavRenderlessParams['api']) => (event: KeyboardEvent) => void; declare const setFocus: (state: ITabNavRenderlessParams['state']) => () => void; declare const removeFocus: (state: ITabNavRenderlessParams['state']) => () => void; declare const moreTabShow: (state: ITabNavRenderlessParams['state']) => () => void; declare const expandTabShow: ({ api, state }: Pick) => () => void; declare const expandTabHide: (state: ITabNavRenderlessParams['state']) => () => boolean; declare const computedHeaderStyle: ({ vm, state }: Pick) => () => {}; declare const handleTabDragStart: ({ state, vm, emit }: Pick) => (event: DragEvent) => void; declare const handleTabDragEnd: ({ vm, state, nextTick }: Pick) => () => void; declare const sortableEvent: ({ api, props, state, vm, emit, markRaw }: Pick) => () => void; declare const watchCurrentName: ({ nextTick, vm, state }: Pick) => () => void; type ITabNavProps = { _mode: string; } & ExtractPropTypes & ITabsProps; interface ITabNavStyle { } interface ITabLineStyle { width: number; offset: number; } interface ITabNavScrollable { prev: number; next: boolean; } interface ITabNavState { dragging: boolean; navOffset: number; lineStyle: ITabLineStyle; scrollable: boolean | ITabNavScrollable; isFocus: boolean; focusable: boolean; showMoreItem: boolean; isActive: boolean; showMoreTabs: boolean; showExpandItem: boolean; showExpandTabs: boolean; expandHeaderStyle: {}; mode: string; rootTabs: ITabsVm; sizeName: string; navStyle: ITabNavStyle; navSortableObj: object; separator: boolean | null; } interface ITabNavApi { state: ITabNavState; setFocus: ReturnType; removeFocus: ReturnType; moreTabShow: ReturnType; expandTabShow: ReturnType; expandTabHide: ReturnType; scrollPrev: ReturnType; scrollNext: ReturnType; windowBlurHandler: ReturnType; windowFocusHandler: ReturnType; visibilityChangeHandler: ReturnType; scrollToActiveTab: ReturnType; scrollIntoView: ReturnType; computedHeaderStyle: ReturnType; watchCurrentName: ReturnType; handleTabDragStart: ReturnType; handleTabDragEnd: ReturnType; sortableEvent: ReturnType; computedSizeName: typeof computedSizeName; computedNavStyle: typeof computedNavStyle; beforeUnmount: typeof beforeUnmount; mounted: typeof mounted; changeTab: ReturnType; updated: ReturnType; } type ITabNavRenderlessParamUtils = ISharedRenderlessParamUtils; type ITabNavRenderlessParams = ISharedRenderlessFunctionParams & { state: ITabNavState; props: ITabNavProps; api: ITabNavApi; rootTabs: ITabsVm; }; export { ITabNavApi, ITabNavProps, ITabNavRenderlessParamUtils, ITabNavRenderlessParams, ITabNavState };