ApiProps: {
    authorization?: string;
    context?: any;
    data?: any;
    headers?: Headers;
    method:
        | "GET"
        | "DELETE"
        | "HEAD"
        | "OPTIONS"
        | "POST"
        | "PUT"
        | "PATCH"
        | "PURGE"
        | "LINK"
        | "UNLINK";
    onError?: ((error: CustomError, args: Omit<ApiProps, "onSuccess" | "onError" | "context">, context: ApiProps["context"]) => void);
    onSuccess?: ((data: any, args: Omit<ApiProps, "onSuccess" | "onError" | "context">, context: ApiProps["context"]) => void);
    options?: Omit<RequestInit, "method" | "body" | "headers">;
    params?: OnlyObject;
    queryArrayParamStyle?: "indexedArray" | "repeatedParameters";
    queryParamsSerializer?: ((params: OnlyObject) => string);
    url: string;
}