import { Dispatch } from "react"; export declare module M_Table { interface state { header: header[]; windowSize: number; } interface header { title: string; property: string; order?: boolean; toolTip?: boolean; align?: string; width?: number; flex?: number; hidden?: boolean; } type choice = { isAllCheck: number; include: T[]; exclude: T[]; }; type ordering = "DESC" | "ASC"; interface config { check: config.check | null; order: config.order | null; } namespace config { type order = { sort: sortPayload; onClick: (order: sortPayload) => void; }; type check = { choice: choice; onChange: (payload: { data: T[]; choice: choice; }) => void; disabled?: { key: string; value: number | string; } | { key: string; value: number | string; }[]; type?: "pagination" | "infinite"; }; } interface context { data: T[]; state: { header: header[]; windowSize: number; }; setState: Dispatch<(state: state) => state>; config: config; } type checkPayload = { data: T[]; choice: choice; }; type sortPayload = { [key: string]: ordering; }; type rowProps = { property: string; rowData: T; value: any; }; }