import type { PropType } from 'vue'; import type { TableStateParams } from '../../types'; import type { HeaderTag, TablePreferences, SortHandlerFunctionParam, TableDataFetcherParams, TableDataProps, TablePaginationAttributes } from '@kong/kongponents'; import type { BaseTableHeaders, EmptyStateOptions, FetcherResponse, TableSortParams, TableErrorMessage } from '../../types'; declare var __VLS_23: {}, __VLS_25: {}, __VLS_28: {}, __VLS_38: string, __VLS_39: { row: any; rowKey: string | ((row: Record) => string); rowValue: any; }, __VLS_42: { row: any; }, __VLS_50: {}; type __VLS_Slots = {} & { [K in NonNullable]?: (props: typeof __VLS_39) => any; } & { 'toolbar-filter'?: (props: typeof __VLS_23) => any; } & { 'toolbar-button'?: (props: typeof __VLS_25) => any; } & { 'empty-state'?: (props: typeof __VLS_28) => any; } & { actions?: (props: typeof __VLS_42) => any; } & { 'outside-actions'?: (props: typeof __VLS_50) => any; }; declare const __VLS_base: import("vue").DefineComponent; required: true; default: () => {}; }; fetcher: { type: PropType<(param: TableDataFetcherParams) => Promise>; required: true; default: () => Promise<{ data: never[]; total: number; }>; }; initialFetcherParams: { type: PropType, "query">>>; default: null; }; rowKey: { type: PropType; default: string; }; cacheIdentifier: { type: StringConstructor; default: string; }; fetcherCacheKey: { type: NumberConstructor; default: number; }; isLoading: { type: BooleanConstructor; default: boolean; }; query: { type: StringConstructor; default: string; }; enableClientSort: { type: BooleanConstructor; default: boolean; }; sortHandlerFunction: { type: PropType<(param: SortHandlerFunctionParam) => Array>>; default: null; }; enableEntityActions: { type: BooleanConstructor; default: boolean; }; emptyStateOptions: { type: PropType; default: () => {}; }; errorMessage: { type: PropType; default: null; }; paginationAttributes: { type: PropType; default: () => {}; }; hidePaginationWhenOptional: { type: BooleanConstructor; default: boolean; }; disableSorting: { type: BooleanConstructor; default: undefined; }; cellAttributes: { type: PropType<(params: Record) => Record>; default: () => {}; }; rowAttributes: { type: PropType<(row: Record) => Record>; default: () => {}; }; /** tableKey to use for user table preferences. If empty, will fallback to default preferences */ preferencesStorageKey: { type: StringConstructor; default: string; }; /** default table preferences to use if no user preferences are found */ defaultTablePreferences: { type: PropType; default: null; required: false; }; title: { type: StringConstructor; default: string; }; titleTag: { type: PropType; default: string; }; /** default to false, setting to true will suppress the row click event even if "@click:row" is attached */ disableRowClick: { type: BooleanConstructor; default: boolean; }; hidePagination: { type: BooleanConstructor; default: boolean; }; hideToolbar: { type: BooleanConstructor; default: undefined; }; /** * @deprecated in favour of `paginationAttributes` */ disablePaginationPageJump: { type: BooleanConstructor; default: undefined; validator: (value: boolean) => boolean; }; /** * @deprecated in favour of `paginationAttributes` */ paginationType: { type: PropType<"default" | "offset">; default: undefined; validator: (value: string) => boolean; }; }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & { sort: (sortParams: TableSortParams) => any; state: (state: TableStateParams) => any; "click:row": (row: BaseTableHeaders) => any; "clear-search-input": () => any; "empty-state-cta-clicked": () => any; }, string, import("vue").PublicProps, Readonly; required: true; default: () => {}; }; fetcher: { type: PropType<(param: TableDataFetcherParams) => Promise>; required: true; default: () => Promise<{ data: never[]; total: number; }>; }; initialFetcherParams: { type: PropType, "query">>>; default: null; }; rowKey: { type: PropType; default: string; }; cacheIdentifier: { type: StringConstructor; default: string; }; fetcherCacheKey: { type: NumberConstructor; default: number; }; isLoading: { type: BooleanConstructor; default: boolean; }; query: { type: StringConstructor; default: string; }; enableClientSort: { type: BooleanConstructor; default: boolean; }; sortHandlerFunction: { type: PropType<(param: SortHandlerFunctionParam) => Array>>; default: null; }; enableEntityActions: { type: BooleanConstructor; default: boolean; }; emptyStateOptions: { type: PropType; default: () => {}; }; errorMessage: { type: PropType; default: null; }; paginationAttributes: { type: PropType; default: () => {}; }; hidePaginationWhenOptional: { type: BooleanConstructor; default: boolean; }; disableSorting: { type: BooleanConstructor; default: undefined; }; cellAttributes: { type: PropType<(params: Record) => Record>; default: () => {}; }; rowAttributes: { type: PropType<(row: Record) => Record>; default: () => {}; }; /** tableKey to use for user table preferences. If empty, will fallback to default preferences */ preferencesStorageKey: { type: StringConstructor; default: string; }; /** default table preferences to use if no user preferences are found */ defaultTablePreferences: { type: PropType; default: null; required: false; }; title: { type: StringConstructor; default: string; }; titleTag: { type: PropType; default: string; }; /** default to false, setting to true will suppress the row click event even if "@click:row" is attached */ disableRowClick: { type: BooleanConstructor; default: boolean; }; hidePagination: { type: BooleanConstructor; default: boolean; }; hideToolbar: { type: BooleanConstructor; default: undefined; }; /** * @deprecated in favour of `paginationAttributes` */ disablePaginationPageJump: { type: BooleanConstructor; default: undefined; validator: (value: boolean) => boolean; }; /** * @deprecated in favour of `paginationAttributes` */ paginationType: { type: PropType<"default" | "offset">; default: undefined; validator: (value: string) => boolean; }; }>> & Readonly<{ onSort?: ((sortParams: TableSortParams) => any) | undefined; onState?: ((state: TableStateParams) => any) | undefined; "onClick:row"?: ((row: BaseTableHeaders) => any) | undefined; "onClear-search-input"?: (() => any) | undefined; "onEmpty-state-cta-clicked"?: (() => any) | undefined; }>, { title: string; query: string; titleTag: HeaderTag; isLoading: boolean; errorMessage: string | TableErrorMessage; tableHeaders: BaseTableHeaders; fetcher: (param: TableDataFetcherParams) => Promise; initialFetcherParams: Partial, "query">>; rowKey: NoInfer) => string)> | undefined; cacheIdentifier: string; fetcherCacheKey: number; enableClientSort: boolean; sortHandlerFunction: (param: SortHandlerFunctionParam) => Array>; enableEntityActions: boolean; emptyStateOptions: EmptyStateOptions; paginationAttributes: TablePaginationAttributes; hidePaginationWhenOptional: boolean; disableSorting: boolean; cellAttributes: (params: Record) => Record; rowAttributes: (row: Record) => Record; preferencesStorageKey: string; defaultTablePreferences: TablePreferences; disableRowClick: boolean; hidePagination: boolean; hideToolbar: boolean; disablePaginationPageJump: boolean; paginationType: "offset" | "default"; }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>; declare const __VLS_export: __VLS_WithSlots; declare const _default: typeof __VLS_export; export default _default; type __VLS_WithSlots = T & { new (): { $slots: S; }; }; //# sourceMappingURL=EntityBaseTable.vue.d.ts.map