import EcomClient from '../index'; import { Query, CollectionReference, DocumentReference, QuerySnapshot } from './reference'; import { QueryDocumentSnapshot, DocumentSnapshot } from './document'; import { ProductDocumentReference } from './product'; import { CategoryDocumentReference } from './category'; export interface ProductCategoryDocumentData { productId: string; productPath: string; productSKU: string; productName: string; categoryId: string; categoryPath: string; pri: number; created: Date; modified: Date; } export interface SetProductCategoryDocumentData { productDocumentReference: ProductDocumentReference; categoryDocumentReference: CategoryDocumentReference; } export declare class ProductCategoryCollectionReference extends CollectionReference { constructor(client: EcomClient, parent: DocumentReference | null); doc(id: string): DocumentReference; add(assoc: SetProductCategoryDocumentData): Promise; get(): Promise; } export declare class ProductCategoryDocumentReference extends DocumentReference { set(data: any): Promise; get(): Promise; delete(): Promise; } export declare class ProductCategoryDocumentSnapshot extends DocumentSnapshot { } export declare class ProductCategoryQueryDocumentSnapshot extends ProductCategoryDocumentSnapshot { } export declare class ProductCategoryQuerySnapshot extends QuerySnapshot { constructor(query: Query, docs: Array); }