import type { ApplogForInsertOptionalAgent, ApplogValue, EntityID } from '../applog/datom-types.ts'; /** * Generic ObjectBuilder for type-safe entity creation and updates. * * Provides a fluent API to build a set of applogs for an entity. * Modeled after the note3 builder pattern. * * Usage: * ```ts * ObjectBuilder.create({ name: 'foo' }) * .update({ type: 'bar' }) * .build(thread) * ``` */ export declare class ObjectBuilder = Record> { private _data; en: EntityID | null; private _atPrefix; private _atOverrides; constructor(_data: Partial, en?: EntityID | null, _atPrefix?: string | null, _atOverrides?: Partial>); /** * Create a new builder with initial data. */ static create>(init?: Partial, en?: EntityID, atPrefix?: string, atOverrides?: Partial>): ObjectBuilder; /** * Update the data being built. */ update(updateObj: Partial): this; /** * Build the applogs for this entity, optionally resolving against a thread. */ build(thread?: { insert(applogs: ApplogForInsertOptionalAgent[]): ApplogForInsertOptionalAgent[]; }): ApplogForInsertOptionalAgent[]; /** * Get the raw data being built. */ get data(): Partial; } //# sourceMappingURL=builder.d.ts.map