import { FieldRun, FieldValue, RelationshipProps, TextBlock } from "@itwin/core-common";
import { IModelDb } from "../../IModelDb";
import { Id64String } from "@itwin/core-bentley";
import type { EditTxn } from "../../EditTxn";
export interface UpdateFieldsContext {
    readonly hostElementId: Id64String | undefined;
    getProperty(field: FieldRun): FieldValue | undefined;
}
export declare function createUpdateContext(hostElementId: string | undefined, iModel: IModelDb, deleted: boolean): UpdateFieldsContext;
export declare function updateField(field: FieldRun, context: UpdateFieldsContext): boolean;
export declare function updateFields(textBlock: TextBlock, context: UpdateFieldsContext): number;
export declare function updateElementFields(props: RelationshipProps, txn: EditTxn, deleted: boolean): void;
export declare function updateAllFields(annotationElementId: Id64String, txn: EditTxn): void;
//# sourceMappingURL=fields.d.ts.map