import { type PaginatedResult } from '@feedmepos/payment-entity'; import { type ColumnDef } from '@feedmepos/ui-library'; export type CursorTableController = { /** * Reset pagination and all loaded data, and perform load for first page data */ reset: () => {}; /** * All data from the server, will be keep on looping cursor until there's no cursor. */ allData: () => Promise; /** * All loaded data, before transform */ data: () => T[]; /** * Current page of the data, before transform */ pageData: () => T[]; /** * Replace page data by page index */ replaceData: (index: number, value: T) => void; }; declare const _default: (__VLS_props: { readonly columnDefs: ColumnDef[]; readonly rowsDefs: (a: T) => R; readonly paginate: (limit: number, cursor: string) => Promise>; readonly "onRow-click"?: ((data: T) => any) | undefined; } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: { attrs: any; slots: {}; emit: (event: 'row-click', data: T) => any; } | undefined, __VLS_expose?: ((exposed: import("vue").ShallowUnwrapRef>) => void) | undefined, __VLS_setup?: Promise<{ props: { readonly columnDefs: ColumnDef[]; readonly rowsDefs: (a: T) => R; readonly paginate: (limit: number, cursor: string) => Promise>; readonly "onRow-click"?: ((data: T) => any) | undefined; } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps; expose(exposed: import("vue").ShallowUnwrapRef>): void; attrs: any; slots: {}; emit: (event: 'row-click', data: T) => any; }>) => import("vue").VNode & { __ctx?: { props: { readonly columnDefs: ColumnDef[]; readonly rowsDefs: (a: T) => R; readonly paginate: (limit: number, cursor: string) => Promise>; readonly "onRow-click"?: ((data: T) => any) | undefined; } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps; expose(exposed: import("vue").ShallowUnwrapRef>): void; attrs: any; slots: {}; emit: (event: 'row-click', data: T) => any; } | undefined; }; export default _default; type __VLS_PrettifyLocal = { [K in keyof T]: T[K]; } & {};