import { ExtractPropTypes } from 'vue'; import { PropType } from '@opentiny/vue-common'; import { ISharedRenderlessFunctionParams, ISharedRenderlessParamUtils } from './shared.type.js'; declare const pagerProps: { accurateJumper: { type: BooleanConstructor; default: () => boolean; }; appendToBody: { type: BooleanConstructor; default: () => boolean; }; currentPage: { type: NumberConstructor; default: () => number; }; disabled: { type: BooleanConstructor; default: () => boolean; }; hideOnSinglePage: BooleanConstructor; isBeforePageChange: BooleanConstructor; layout: StringConstructor; mode: StringConstructor; nextText: StringConstructor; pageCount: NumberConstructor; pageSize: { type: NumberConstructor; default: () => number; }; pageSizeText: { type: StringConstructor; }; pageSizes: { type: PropType; }; pagerCount: { type: NumberConstructor; validator: (value: any) => boolean; default: () => number; }; popperAppendToBody: { type: BooleanConstructor; default: () => boolean; }; showTotalLoading: { type: BooleanConstructor; default: () => boolean; }; customTotal: { type: (StringConstructor | BooleanConstructor)[]; default: () => boolean; }; popperClass: StringConstructor; prevText: StringConstructor; total: NumberConstructor; size: { type: StringConstructor; default: string; validator: (value: string) => boolean; }; align: { type: StringConstructor; validator: (value: string) => boolean; }; totalFixedLeft: { type: BooleanConstructor; default: undefined; }; changeCompat: { type: BooleanConstructor; default: boolean; }; tiny_mode: StringConstructor; tiny_mode_root: BooleanConstructor; tiny_template: (FunctionConstructor | ObjectConstructor)[]; tiny_renderless: FunctionConstructor; tiny_theme: StringConstructor; tiny_mcp_config: ObjectConstructor; tiny_chart_theme: ObjectConstructor; }; declare const computedShowPager: ({ props, state }: Pick) => () => boolean; declare const computedInternalLayout: ({ props }: Pick) => () => string[]; declare const computedTotalText: ({ props, t }: Pick) => () => string; declare const computedInternalPageCount: ({ props, state }: Pick) => () => number | null; declare const handleJumperFocus: ({ state }: Pick) => (e: Event) => void; declare const watchInternalCurrentPage: ({ state, emit, props }: Pick) => (currentPage: number) => void; declare const watchCurrentPage: ({ state, api }: Pick) => (curPage: number) => void; declare const watchInternalPageCount: ({ state, api }: Pick) => (pageCount: number | null) => void; declare const watchInternalPageSize: ({ props, emit }: Pick) => (pageSize: number) => void; declare const watchTotal: ({ state }: Pick) => (total: number | undefined) => void; declare const watchShowSizes: ({ nextTick, vm }: Pick) => (newVal: boolean) => void; declare const handleSizeChange: ({ props, state, api, emit, vm }: Pick) => (val: number) => void; declare const handleJumperInput: ({ state }: Pick) => (e: Event) => void; declare const handleJumperChange: ({ props, state, api }: Pick) => () => void; declare const handleJumperClick: ({ props, state, api }: Pick) => () => void; declare const isValueNumber: ({ state }: Pick) => () => boolean; declare const parseValueNumber: ({ state }: Pick) => () => void; declare const handleSizeShowPopover: ({ state, props }: Pick) => () => void; declare const handleSizeHidePopover: ({ state }: Pick) => () => void; declare const canJumperGo: ({ props, state, vm }: Pick) => () => boolean; declare const beforeSizeChangeHandler: ({ state, emit }: Pick) => (params: any) => void; declare const beforePagerChangeHandler: ({ state, emit }: Pick) => (params: any) => void; declare const copyEmit: ({ emit }: Pick) => (...args: any[]) => void; declare const beforeChangeHandler: ({ state, api }: Pick) => (val?: number) => boolean; declare const handleCurrentChange: ({ state, api }: Pick) => (val: number) => void; declare const prev: ({ state, props, api, emit }: Pick) => () => void; declare const next: ({ props, state, api, emit }: Pick) => () => void; declare const buildBeforePageChangeParam: ({ state }: Pick) => (param: any) => any; declare const getValidCurrentPage: ({ state }: Pick) => (val: string | number) => any; declare const getInternalPageSize: ({ props }: Pick) => () => number; declare const emitChange: ({ state, nextTick, emit, props }: Pick) => () => void; declare const setTotal: ({ state }: Pick) => (val: number) => void; declare const clickSizes: () => (e: Event) => void; type IPagerProps = ExtractPropTypes; interface IPagerState { showPager: boolean; showSizes: boolean; internalCurrentPage: number; internalPageSize: number; lastEmittedPage: number; userChangePageSize: boolean; internalTotal: number | undefined; jumperValue: string; jumperBackup: string; internalLayout: string[]; totalText: string; internalPageCount: number | null; showJumperSuffix: boolean; align: 'left' | 'center' | 'right'; totalI18n: 'total' | 'totals'; totalFixedLeft: boolean; pageSizeText: string; } interface IPagerApi { state: IPagerState; t: IPagerRenderlessParamUtils['t']; computedShowPager: ReturnType; computedInternalLayout: ReturnType; computedTotalText: ReturnType; computedInternalPageCount: ReturnType; handleJumperFocus: ReturnType; handleSizeChange: ReturnType; handleJumperInput: ReturnType; handleJumperChange: ReturnType; handleJumperClick: ReturnType; isValueNumber: ReturnType; parseValueNumber: ReturnType; handleSizeShowPopover: ReturnType; handleSizeHidePopover: ReturnType; canJumperGo: ReturnType; beforeSizeChangeHandler: ReturnType; beforePagerChangeHandler: ReturnType; copyEmit: ReturnType; beforeChangeHandler: ReturnType; handleCurrentChange: ReturnType; prev: ReturnType; next: ReturnType; buildBeforePageChangeParam: ReturnType; getValidCurrentPage: ReturnType; emitChange: ReturnType; setTotal: ReturnType; clickSizes: ReturnType; watchInternalCurrentPage: ReturnType; watchCurrentPage: ReturnType; watchInternalPageCount: ReturnType; watchTotal: ReturnType; watchShowSizes: ReturnType; watchInternalPageSize: ReturnType; getInternalPageSize: ReturnType; } type IPagerRenderlessParams = ISharedRenderlessFunctionParams & { api: IPagerApi; state: IPagerState; props: IPagerProps; }; type IPagerRenderlessParamUtils = ISharedRenderlessParamUtils; export { IPagerApi, IPagerProps, IPagerRenderlessParamUtils, IPagerRenderlessParams, IPagerState };