import {CollectionBuilder, Collection, SerializePath, SerializeOptions} from './StructureNodes' export interface ChildResolverOptions { index: number parent: Collection parentPath?: SerializePath serializeOptions?: SerializeOptions } export type ItemChild = CollectionBuilder | Collection | Function | undefined interface ChildObservable { subscribe: (child: ItemChild | Promise) => {} } export interface ChildResolver { (itemId: string, options: ChildResolverOptions): | ItemChild | Promise | ChildObservable | undefined }