import { Field } from "@alifd/next/types"; import { FormProps } from "@alifd/next/types/form"; declare global { interface Window { llmTmpParamsCache: any; } } export interface ListProps { styles?: ListStyles; hasPagination?: boolean; fetchData: any; fetchSchema?: any; filterProps?: FilterProps; filterFormProps?: FormProps; actionBarProps?: any; filterCompsMap?: any; tableActionsMap?: any; tableColumnsMap?: any; customFilterRender?: any; customActionBarRender?: any; customTableRender?: any; customPaginationRender?: any; [propName: string]: any; } export interface FilterProps { col?: 1 | 2 | 3 | 4 | 5; } export interface ListStyles { filterWrapperStyles?: any; filterFormStyles?: any; tableWrapperStyles?: any; paginationWrapperStyles?: any; [propName: string]: any; } export interface ContainerChildrenProps extends ListStyles { filterPropsData: FilterPropsData; tablePropsData: TablePropsData; paginationPropsData: any; actionBarPropsData: any; } export interface FilterPropsData { styles?: ListStyles; field: Field; loading?: boolean; col?: 1 | 2 | 3 | 4 | 5; cacheParamsKey?: any; defaultExpended?: boolean; submit: any; reset?: any; schema: { dataSource?: FilterSchema[]; }; CompsMap: any; formProps?: FormProps; } export interface TablePropsData { field: Object; styles?: ListStyles; refresh?: any; tableProps?: any; schema: TableSchema[]; ColumnsMap: any; ActionsMap?: any; shuttle?: {} | (() => {}); } export interface PaginationPropsData { hasPagination?: boolean; styles?: ListStyles; paginationProps: any; hideOnlyOnePage: boolean; [propName: string]: any; } export interface UseSchema { fetchSchema?: any; } export interface FilterSchema { type: string; label?: string; key?: string; placeholder?: string; [propName: string]: any; } export interface TableSchema { type: string; title?: string; dataIndex?: string; width?: string | number; [propName: string]: any; } export interface FilterItem { type: string; label: string; key: string; [propName: string]: any; } export interface TableColumn { index?: number; value?: any; record?: any; shuttle: () => {}; } export interface TableActionColumn extends TableColumn { actionsMap: any; refresh?: any; [propName: string]: any; } export interface TableActionCompProps { index?: string | number | any; record: any; refresh?: any; [propName: string]: any; }