import type { InferRequestType, InferResponseType } from 'hono/client';
import { systemConfigClient } from '../api/systemConfigClient';

export type CreateSystemConfigRequest = InferRequestType<typeof systemConfigClient.index.$post>['json'];
export type UpdateSystemConfigRequest = InferRequestType<typeof systemConfigClient[':id']['$put']>['json'];
export type SystemConfigResponse = InferResponseType<typeof systemConfigClient.index.$get, 200>['data'][0];
export type SystemConfigListResponse = InferResponseType<typeof systemConfigClient.index.$get, 200>;

export interface SystemConfigFormData {
  configKey: string;
  configValue: string;
  description?: string | null;
}

export interface SystemConfigSearchParams {
  page: number;
  limit: number;
  search: string;
}