import { AxiosInstance, AxiosResponse } from 'axios'; import { SystemRoleAttribute, TransactionAttribute } from '../utils/role.util'; import { TreeNode } from '../../node_modules/primevue/treenode'; export interface ServiceOptions { type?: 'Group' | 'Category'; headers?: Record; params?: TreeQueryParams; } export interface TreeListData { data: TreeNode[]; } export type RoleType = 'Manager' | 'Monitoring' | 'Approval' | 'Staff'; export interface TreeRoleParams { systemRole?: SystemRoleAttribute[]; transactionAttribute?: TransactionAttribute[]; roleType?: RoleType[]; } export interface TreeQueryParams { systemRole?: string; transactionAttribute?: string; roleType?: string; } export declare const API: ({ type, headers, params, }?: ServiceOptions) => AxiosInstance; declare const TreeServices: { getTreeList: (type: ServiceOptions['type'], params?: TreeQueryParams) => Promise>; }; export default TreeServices;