import { NestedCollectionFetchAllCollectionState } from './NestedCollectionFetchAllCollectionState';
import { QueryState, TaskState } from '@wix/bex-core';
import { TypedEmitter } from '@wix/bex-core/events';
import { NestedCollectionState } from './NestedCollectionState';
import { EagerLazyModeOptions } from './types';
export interface NestedCollectionFetchAllStateParams {
    readonly nestedCollectionState: NestedCollectionState;
    readonly query: QueryState<{}>;
    readonly options: EagerLazyModeOptions;
}
export declare class NestedCollectionFetchAllState {
    readonly nestedCollectionState: NestedCollectionState;
    readonly events: TypedEmitter<{
        fetchAllAbortSignal: () => unknown;
    }>;
    readonly fetchedAllPromise: Promise<void>;
    readonly options: EagerLazyModeOptions;
    readonly query: QueryState<{}>;
    readonly initTask: TaskState<unknown>;
    readonly collections: NestedCollectionFetchAllCollectionState<unknown, {}>[];
    isFetchAllAborted: boolean;
    constructor(params: NestedCollectionFetchAllStateParams);
    init({ invalidate }?: {
        invalidate: boolean;
    }): () => void;
    _setInitialExpandAllByThreshold(): void;
    _populateParentIdRequestsCache(): void;
    get uniqueCollections(): NestedCollectionFetchAllCollectionState<unknown, {}>[];
    get total(): number;
    _otherLevelSameCollectionExists(collection: NestedCollectionFetchAllCollectionState<any, any>): boolean;
}
//# sourceMappingURL=NestedCollectionFetchAllState.d.ts.map