export {}

declare global {
  namespace G {
    interface TreeNode {
      id: string
      pid: string
      children?: TreeNode[]
      hasChildren?: boolean

      [key: string]: any
    }

    interface PageResult<T = object> {
      current: number
      size: number
      pages: number
      total: number
      records: T[]
    }

    interface PageParam extends Record<string, any> {
      current?: number
      size?: number
      orders?: string
    }

    interface Pagination {
      total?: number
      pages?: number
      current?: number
      size?: number
    }
  }
}

