import { Entity } from '@backstage/catalog-model';
export declare function useFetchEntities({ mode, initialSelectedOwnersRefs, }: {
    mode: 'owners-only' | 'all';
    initialSelectedOwnersRefs: string[];
}): readonly [{
    loading: boolean;
    error?: undefined;
    value?: undefined;
} | {
    loading: false;
    error: Error;
    value?: undefined;
} | {
    loading: true;
    error?: Error | undefined;
    value?: {
        items: Entity[];
        cursor?: string | undefined;
    } | undefined;
} | {
    loading: false;
    error?: undefined;
    value: {
        items: Entity[];
        cursor?: string | undefined;
    };
}, (request: {
    items: Entity[];
    cursor?: string | undefined;
} | {
    text: string;
}, options?: {
    limit: number;
} | undefined) => Promise<{
    items: Entity[];
    cursor?: string | undefined;
}>, {
    getEntity: (entityRef: string) => Entity;
    setEntity: (entity: Entity) => void;
}];
