// Define pagination interface
interface ApiPaginationResponse {
  page: number;
  size: number;
  totalCount: number;
  allCount: number;
  totalPages: number;
  orderFields: string[];
  orderTypes: string[];
  pageCount: number;
  next: string;
  prev: string;
}

// Define default response interface
interface ApiDefaultResponse {
  completed: boolean;
  message: string;
  data?: Record<string, any> | null;
}

// Define default response interface with pagination
interface ApiDefaultResponseWithPagination extends ApiDefaultResponse {
  pagination?: ApiPaginationResponse | null;
}

export type {
  ApiPaginationResponse,
  ApiDefaultResponse,
  ApiDefaultResponseWithPagination,
};
