import {CollectionBuilder, Collection, SerializeOptions} from './StructureNodes' import {FixMe} from './types' // TODO: unify with the RouterSplitPaneContext export interface ChildResolverOptions { parent: unknown index: number splitIndex: number path: string[] params: Record serializeOptions?: SerializeOptions } export type ItemChild = CollectionBuilder | Collection | FixMe | undefined interface ChildObservable { subscribe: (child: ItemChild | Promise) => Record } export interface ChildResolver { (itemId: string, options: ChildResolverOptions): | ItemChild | Promise | ChildObservable | undefined }