import type { ComponentPublicInstance, ExtractPropTypes, PropType } from 'vue'; import type { AffixExpose } from './interface'; declare function getDefaultTarget(): Window & typeof globalThis; export declare function affixProps(): { /** * 距离窗口顶部达到指定偏移量后触发 */ offsetTop: NumberConstructor; /** 距离窗口底部达到指定偏移量后触发 */ offsetBottom: NumberConstructor; /** 设置 Affix 需要监听其滚动事件的元素,值为一个返回对应 DOM 元素的函数 */ target: { type: PropType<() => Window | HTMLElement | null>; default: typeof getDefaultTarget; }; prefixCls: StringConstructor; /** 固定状态改变时触发的回调函数 */ onChange: PropType<(lastAffix: boolean) => void>; onTestUpdatePosition: PropType<() => void>; }; export type AffixProps = Partial>>; export type AffixInstance = ComponentPublicInstance; export {};