import { PropertyAccessor } from '@cratis/fundamentals'; import { ChildAdditionEntry } from './AddChildBuilder.js'; import { DictionaryKeySource } from './DictionaryKey.js'; import { IAddBuilder } from './IAddBuilder.js'; import { IAddChildBuilder } from './IAddChildBuilder.js'; import { ICompositeKeyBuilder } from './ICompositeKeyBuilder.js'; import { IFromBuilder } from './IFromBuilder.js'; import { ISetBuilder } from './ISetBuilder.js'; import { ISubtractBuilder } from './ISubtractBuilder.js'; /** * Accumulated property mapping for a from clause. */ export interface FromEntry { properties: Record; key: string; parentKey: string; children: ChildAdditionEntry[]; } /** * Concrete implementation of {@link IFromBuilder}. * @template TReadModel - The read model type. * @template TEvent - The event type. */ export declare class FromBuilder implements IFromBuilder { readonly entry: FromEntry; /** @inheritdoc */ set(readModelPropertyAccessor: PropertyAccessor, key?: DictionaryKeySource): ISetBuilder>; /** @inheritdoc */ setOnce(readModelPropertyAccessor: PropertyAccessor, key?: DictionaryKeySource): ISetBuilder>; /** @inheritdoc */ removeKey(readModelPropertyAccessor: PropertyAccessor, key: DictionaryKeySource): this; /** @inheritdoc */ usingKey(keyAccessor: PropertyAccessor): this; /** @inheritdoc */ usingKeyFromContext(contextPropertyName: string): this; /** @inheritdoc */ usingParentKey(keyAccessor: PropertyAccessor): this; /** @inheritdoc */ usingParentKeyFromContext(contextPropertyName: string): this; /** @inheritdoc */ usingCompositeKey(builderCallback: (builder: ICompositeKeyBuilder) => void): this; /** @inheritdoc */ usingParentCompositeKey(builderCallback: (builder: ICompositeKeyBuilder) => void): this; /** @inheritdoc */ usingConstantKey(value: string): this; /** @inheritdoc */ usingConstantParentKey(value: string): this; /** @inheritdoc */ increment(readModelPropertyAccessor: PropertyAccessor, key?: DictionaryKeySource): this; /** @inheritdoc */ decrement(readModelPropertyAccessor: PropertyAccessor, key?: DictionaryKeySource): this; /** @inheritdoc */ add(readModelPropertyAccessor: PropertyAccessor, key?: DictionaryKeySource): IAddBuilder; /** @inheritdoc */ subtract(readModelPropertyAccessor: PropertyAccessor, key?: DictionaryKeySource): ISubtractBuilder; /** @inheritdoc */ count(readModelPropertyAccessor: PropertyAccessor, key?: DictionaryKeySource): this; /** @inheritdoc */ addChild(targetPropertyAccessor: (model: TReadModel) => readonly TChildModel[] | null | undefined, builderCallback: (builder: IAddChildBuilder & TEvent) => void): this; /** @inheritdoc */ addChild(targetPropertyAccessor: (model: TReadModel) => readonly TChildModel[] | null | undefined, eventPropertyAccessor: PropertyAccessor): this; /** @inheritdoc */ addChild(targetPropertyAccessor: PropertyAccessor, eventPropertyAccessorOrBuilderCallback: PropertyAccessor | ((builder: IAddChildBuilder) => void)): this; /** @inheritdoc */ setThisValue(): ISetBuilder; /** * Resolves the target property path: the property itself, or the entry of a dictionary-typed property. * @param readModelPropertyAccessor - Accessor for the read model property. * @param key - Optional dictionary key. * @returns The target property path. */ private targetOf; } //# sourceMappingURL=FromBuilder.d.ts.map