import type { IDataTableQuery } from '../../services/api/api.models';
import type { ITable, IAction, ITableOptions, IIsMultiSortEvent } from "./models/table";
import type { Column, IColumnOption } from "./models/column";
import type { ITenantAttributeScope } from '../../services/api/DataHub/Scopes';
import type { ITenantAttributeLanguage } from '../../services/api/DataHub/Languages';
import { SORT_TYPE, ROW_SELECTION } from "./constants";
/**
 * Actindo Data Table properties
 * @interface
 * @template T
 * @property {string | T[] | IDataFetcher<T>} data - Table data source
 * @property {object} [customQuery] - Additional query, will be sent on every request
 * @property {boolean} [isLoading] - Should not show table component
 * @property {boolean} [isRowClickable] - Should show cursor pointer on row
 * @property {ROW_SELECTION} [rowSelection] - Row selection type
 * @property {IColumnOption[]} columns - Column configuration array
 * @property {Partial<IColumnOption>} [defaultColumn] - Common column configuration, will be added to every column
 * @property {string[]} [columnsOrder] - Ordered list of columns IDs
 * @property {SORT_TYPE} [sortType] - Sorting type (blocked/by single column/by multi columns)
 * @property {IIsMultiSortEvent} [isMultiSortEvent='shift + click'] - Determines whether the current event trigger a multi-sorting (hold 'shift' key by default)
 * @property {string} [tableName] - Table title
 * @property {string} [gridId] - Name of table preset
 * @property {boolean} [showSplitView] - Show split view control
 * @property {boolean} [hideGlobalSearch] - Don't show global search input
 * @property {boolean} [hideFilters] - Don't show column filters
 * @property {boolean} [hideColumnCustomization] - Don't show columns list, don't allow to change columns order
 * @property {IAction[]|boolean} [createActions] - Menu item for `Create new row` button
 * @property {boolean} [hidePagination] - Don't show pagination
 * @property {number} [pageSize] - Amount of rows per page
 * @property {boolean|number[]} [pageSizes] - Allow to change page size
 */
interface IActindoDataTableProps<T extends object = object> extends ITableOptions<T> {
    /**
     * Table data source
     * @example { data: "Actindo.CoreModules.Auth.User.listKeys" } - use HttpApi.getDataTable to fetch data
     * @example { data: [{}, ...] } - offline data
     * @example { data: <T>(query: IDataTableQuery) => Promise<IDataFetcherResponse<T>> } - use this function to fetch data
     * @required
     */
    data: string | T[] | (() => Promise<any>);
    /** Additional query, will be sent on every request */
    customQuery?: Record<string, unknown>;
    /** External flag - should not show table component */
    isLoading?: boolean;
    /** will be passed to actions panel */
    disableActions?: boolean;
    /** External flag - don't fetch new data */
    freeze?: boolean;
    /** Should show cursor pointer on row */
    isRowClickable?: boolean;
    /**
     * Row selection type:
     * ROW_SELECTION.NONE - hide row checkboxes
     * ROW_SELECTION.SINGLE - select only single row at once
     * ROW_SELECTION.MULTI - select any amount of rows at once
     *  */
    rowSelection?: ROW_SELECTION;
    /** Disable selection of the row it that field contains true  */
    lockedProperty?: string;
    rowHeight?: string;
    minRowHeight?: string;
    /**
     * Column configuration array
     * @required
     * */
    columns: IColumnOption[];
    /** Common column configuration, will be added to every column */
    defaultColumn?: Partial<IColumnOption>;
    /** Ordered list of columns IDs */
    columnsOrder?: string[];
    /** Sorting type (blocked/by single column/by multi columns) */
    sortType?: SORT_TYPE;
    /** Determines whether the current event should trigger a multi-sorting */
    isMultiSortEvent?: IIsMultiSortEvent;
    /**
     * Menu items for `Actions Bar`
     * @example { tableActions: [{}, ...] } - show actions buttons/menus and emit selected event
     */
    tableActions?: IAction[];
    /** Table title */
    tableName?: string;
    /** Preset ID */
    gridId?: string;
    /** Hide Channel and Language controls */
    channels?: ITenantAttributeScope[] | boolean;
    languages?: ITenantAttributeLanguage[] | boolean;
    /** Show split view control */
    showSplitView?: boolean;
    /** Don't show global search input */
    hideGlobalSearch?: boolean;
    /** Don't show column filters */
    hideFilters?: boolean;
    /** Don't show columns list, don't allow to change columns order */
    hideColumnCustomization?: boolean;
    /**
     * Menu items for `Create new row` button
     * @example { createActions: false } - hide `Create new row` button
     * @example { createActions: undefined } - hide `Create new row` button
     * @example { createActions: [] } - hide `Create new row` button
     * @example { createActions: [{}] } - show only `Create new row` button and emit this event immediately on button click
     * @example { createActions: [{}, ...] } - show actions menu and emit selected event
     */
    createActions?: IAction[] | boolean;
    /** Don't show pagination */
    hidePagination?: boolean;
    /** Amount of rows per page */
    pageSize?: number;
    /**
     * Allow to choose page size
     * @example { pageSizes: true } - show default page size list (PAGE_SIZES)
     * @example { pageSizes: [10, ...] } - show specified page sizes list
     *  */
    pageSizes?: boolean | number[];
    /** should use router for details navigation */
    routable?: boolean;
    /** name of the ID field in the route.params (rowId by default) */
    routableId?: string;
    /** name of the field with id for routing */
    rowIdName?: string;
    /** should not hide table in detail view */
    modalDetails?: boolean;
    hideRemove?: boolean;
    canReorderHeaders?: boolean;
    refreshText?: string;
    hideNoData?: boolean;
}
declare function closeDetails(): void;
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IActindoDataTableProps<object>>, {
    customQuery: any;
    isLoading: boolean;
    disableActions: boolean;
    freeze: boolean;
    isRowClickable: boolean;
    rowSelection: ROW_SELECTION;
    lockedProperty: any;
    rowHeight: string;
    minRowHeight: string;
    defaultColumn: () => {};
    columnsOrder: any;
    sortType: SORT_TYPE;
    isMultiSortEvent: any;
    tableName: any;
    gridId: any;
    channels: boolean;
    languages: boolean;
    showSplitView: boolean;
    hideGlobalSearch: boolean;
    hideFilters: boolean;
    hideColumnCustomization: boolean;
    createActions: boolean;
    hidePagination: boolean;
    pageSize: number;
    pageSizes: () => number[];
    tableActions: () => any[];
    routable: boolean;
    routableId: string;
    rowIdName: string;
    modalDetails: boolean;
    hideRemove: boolean;
    canReorderHeaders: boolean;
    refreshText: any;
    hideNoData: boolean;
}>, {
    table: ITable<object>;
    reloadTable: () => void;
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
    create: (eventName: string) => void;
    action: (eventName: string, selectedRows: Record<string, any>[]) => void;
    "clicked-row": (selectedRow: Record<string, any>) => void;
    "dbl-clicked-row": (selectedRow: Record<string, any>) => void;
    detail: (isVisible: boolean) => void;
    "update-width": (width: number, header: Column<Record<string, any>>) => void;
    "update:data": (newRows: object[]) => void;
    refresh: () => void;
    recalculate: (query: IDataTableQuery) => void;
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IActindoDataTableProps<object>>, {
    customQuery: any;
    isLoading: boolean;
    disableActions: boolean;
    freeze: boolean;
    isRowClickable: boolean;
    rowSelection: ROW_SELECTION;
    lockedProperty: any;
    rowHeight: string;
    minRowHeight: string;
    defaultColumn: () => {};
    columnsOrder: any;
    sortType: SORT_TYPE;
    isMultiSortEvent: any;
    tableName: any;
    gridId: any;
    channels: boolean;
    languages: boolean;
    showSplitView: boolean;
    hideGlobalSearch: boolean;
    hideFilters: boolean;
    hideColumnCustomization: boolean;
    createActions: boolean;
    hidePagination: boolean;
    pageSize: number;
    pageSizes: () => number[];
    tableActions: () => any[];
    routable: boolean;
    routableId: string;
    rowIdName: string;
    modalDetails: boolean;
    hideRemove: boolean;
    canReorderHeaders: boolean;
    refreshText: any;
    hideNoData: boolean;
}>>> & {
    onAction?: (eventName: string, selectedRows: Record<string, any>[]) => any;
    onCreate?: (eventName: string) => any;
    onRefresh?: () => any;
    "onClicked-row"?: (selectedRow: Record<string, any>) => any;
    "onDbl-clicked-row"?: (selectedRow: Record<string, any>) => any;
    "onUpdate-width"?: (width: number, header: Column<Record<string, any>>) => any;
    onRecalculate?: (query: IDataTableQuery) => any;
    onDetail?: (isVisible: boolean) => any;
    "onUpdate:data"?: (newRows: object[]) => any;
}, {
    hideNoData: boolean;
    pageSize: number;
    isLoading: boolean;
    createActions: boolean | IAction[];
    freeze: boolean;
    languages: boolean | ITenantAttributeLanguage[];
    customQuery: Record<string, unknown>;
    disableActions: boolean;
    defaultColumn: {};
    columnsOrder: string[];
    sortType: SORT_TYPE;
    isMultiSortEvent: IIsMultiSortEvent;
    gridId: string;
    channels: boolean | ITenantAttributeScope[];
    hideGlobalSearch: boolean;
    hideFilters: boolean;
    hideColumnCustomization: boolean;
    rowIdName: string;
    rowHeight: string;
    minRowHeight: string;
    hidePagination: boolean;
    tableActions: IAction[];
    hideRemove: boolean;
    rowSelection: ROW_SELECTION;
    tableName: string;
    showSplitView: boolean;
    refreshText: string;
    pageSizes: boolean | number[];
    canReorderHeaders: boolean;
    lockedProperty: string;
    isRowClickable: boolean;
    routable: boolean;
    routableId: string;
    modalDetails: boolean;
}, {}>, Partial<Record<NonNullable<string | number>, (_: any) => any>> & {
    filters?(_: {}): any;
    actionButtons?(_: {
        table: ITable<object>;
        disabled: boolean;
    }): any;
    globalActions?(_: {}): any;
    extraActions?(_: {}): any;
    details?(_: {
        rowId: string | string[];
        row: any;
        close: typeof closeDetails;
    }): any;
    modals?(_: {}): any;
}>;
export default _default;
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
type __VLS_TypePropsToRuntimeProps<T> = {
    [K in keyof T]-?: {} extends Pick<T, K> ? {
        type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
    } : {
        type: import('vue').PropType<T[K]>;
        required: true;
    };
};
type __VLS_WithDefaults<P, D> = {
    [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
        default: D[K];
    }> : P[K];
};
type __VLS_Prettify<T> = {
    [K in keyof T]: T[K];
} & {};
type __VLS_WithTemplateSlots<T, S> = T & {
    new (): {
        $slots: S;
    };
};
