import { type CollectionReference } from '@dereekb/firebase'; import { AbstractWrappedFixtureWithInstance, type TestWrappedContextFactoryBuilder } from '@dereekb/util/test'; import { type TestFirestoreContextFixture } from '../firestore/firestore.instance'; import { type MockItemFirestoreCollection, type MockItem } from './mock.item'; import { type MockItemCollections } from './mock.item.service'; /** * Provides direct access to all mock item Firestore collections for a single test run. * * Created by {@link MockItemCollectionFixture} and exposes convenience getters for each * mock collection/collection-group. Delegates collection creation to {@link makeMockItemCollections}. */ export declare class MockItemCollectionFixtureInstance { readonly fixture: MockItemCollectionFixture; readonly collections: MockItemCollections; get collection(): CollectionReference; /** * @deprecated Use mockItemCollection instead. */ get firestoreCollection(): MockItemFirestoreCollection; get mockItemCollection(): MockItemFirestoreCollection; get mockItemPrivateCollection(): import("./mock.item").MockItemPrivateFirestoreCollectionFactory; get mockItemSubItemCollection(): import("./mock.item").MockItemSubItemFirestoreCollectionFactory; get mockItemSubItemCollectionGroup(): import("./mock.item").MockItemSubItemFirestoreCollectionGroup; get mockItemUserCollection(): import("./mock.item").MockItemUserFirestoreCollectionFactory; get mockItemUserCollectionGroup(): import("./mock.item").MockItemUserFirestoreCollectionGroup; get mockItemSubItemDeepCollection(): import("./mock.item").MockItemSubItemDeepFirestoreCollectionFactory; get mockItemSubItemDeepCollectionGroup(): import("./mock.item").MockItemSubItemDeepFirestoreCollectionGroup; get mockItemSystemState(): import("@dereekb/firebase").SystemStateFirestoreCollection; constructor(fixture: MockItemCollectionFixture); } /** * Test fixture that wraps a {@link TestFirestoreContextFixture} and provides access to * all mock item collections via {@link MockItemCollectionFixtureInstance}. * * Use {@link testWithMockItemCollectionFixture} to create a factory builder for this fixture. */ export declare class MockItemCollectionFixture extends AbstractWrappedFixtureWithInstance { } /** * Configuration options for {@link testWithMockItemCollectionFixture}. * * Currently empty; reserved for future setup/teardown customization. */ export interface MockItemCollectionFirebaseContextConfig { } /** * Creates a {@link TestWrappedContextFactoryBuilder} that sets up a {@link MockItemCollectionFixture} * around a parent {@link TestFirestoreContextFixture}. * * Compose with a Firebase test context factory to get a fully wired test environment: * * @example * ```ts * const f = testWithMockItemCollectionFixture()(authorizedFirebaseFactory); * describe('my test', () => f.with((instance) => { * it('should work', () => { ... }); * })); * ``` */ export declare function testWithMockItemCollectionFixture(_config?: MockItemCollectionFirebaseContextConfig): TestWrappedContextFactoryBuilder;