import type { Doc } from 'sharedb/lib/client'; import type { IInstanceState } from './reducer'; export interface IUseInstancesProps { collection: string; initData?: T[]; factory: (data: T, doc?: Doc) => R; queryParams: unknown; } /** * Manage instances of a collection, auto subscribe the update and change event, auto create instance, * keep every instance the latest data * @returns instance[] */ export declare function useInstances({ collection, factory, queryParams, initData, }: IUseInstancesProps): IInstanceState;