// ----- createApi ----- export type ApiAction = { url?: string | ((id?: unknown, data?: any) => string); method?: "get" | "post" | "put" | "patch" | "delete"; body?: (data: any) => any; sendRawPayload?: boolean; invalidateKeys?: any[] | ((responseData: any, variables: any) => any[]); }; export type CreateApiConfig = { key: string | unknown[]; url: string; actions?: Record; axiosInstance?: any; fetcher?: any; }; export function createApi(config: CreateApiConfig): { key: unknown[]; listKey: unknown[]; useGet: any; useItem: any; useAction: any; };