import { QueryClient } from '@tanstack/react-query';
export default function useCreate<Repository, NewInstanceData extends object | undefined, T = any>(props: {
    resource: string;
    repository: string;
    fn: (repo: Repository, newItem: NewInstanceData) => Promise<any>;
    onSuccess?: (response: any, queryClient: QueryClient, params: any) => void;
    onFailure?: (error: any) => void;
    options?: {
        refetchList?: boolean;
    };
}): {
    save: (newInstanceData?: NewInstanceData) => Promise<T>;
    reset: () => any;
    loading: boolean;
    loaded: boolean;
    data: any;
    error: any;
};
