import { Permission } from "@/types/auth";

export interface PermissionFormData {
  title: string;
  description: string;
}

export interface PermissionFilters {
  search?: string;
  page?: number;
  limit?: number;
}

export interface CreatePermissionRequest {
  title: string;
  description: string;
}

export interface UpdatePermissionRequest {
  id: number;
  title: string;
  description: string;
}

export interface PermissionsResponse {
  permissions: Permission[] | null;
}

export interface PermissionResponse {
  permission: Permission;
}

export interface CreatePermissionResponse {
  permission: Permission;
}

export interface UpdatePermissionResponse {
  permission: Permission;
}

export interface DeletePermissionResponse {
  message: string;
}

// Export Permission type for easier access
export type { Permission } from "@/types/auth";
