import { A as AutumnError } from '../error-CG2LXoa7.mjs';
import { E as Entity } from '../entTypes-CV-165S-.mjs';
import { GetEntityParams } from '../client/types/clientEntTypes.mjs';
import { A as AutumnClient } from '../ReactAutumnClient-BQtmw21U.mjs';
import '../cusTypes-Cf-s9PYP.mjs';
import '../client/types/clientReferralTypes.mjs';
import '../client/types/clientGenTypes.mjs';
import '../response-B5dHU3I9.mjs';

interface EntityProvider {
    entity: Entity | null;
    isLoading: boolean;
    error: AutumnError | null;
    refetch: (args: {
        entityId?: string;
        params?: GetEntityParams;
    }) => Promise<void>;
    lastParams: GetEntityParams | null;
}
declare const useEntityProvider: ({ client }: {
    client: AutumnClient;
}) => {
    entity: Entity | null;
    isLoading: boolean;
    error: AutumnError | null;
    refetch: ({ entityId, params, }: {
        entityId?: string;
        params?: GetEntityParams;
    }) => Promise<void>;
    lastParams: GetEntityParams | null;
};

export { type EntityProvider, useEntityProvider };
