import { AttributeExpressionMap } from '../attributes/attribute-map.js'; import { UpdateValues } from './index.js'; /** * The result object returned by the [`parseUpdate`](/api-reference/functions/parseupdate) function. * * @property updateExpression - The DynamoDB update expression string. * @property attributeExpressionMap - The `AttributeExpressionMap` instance containing the attribute names and values used in the update expression. */ type UpdateParserResult = { updateExpression: string; attributeExpressionMap: AttributeExpressionMap; }; /** * Parses an update object into a DynamoDB update expression string along with an attribute expression map. * * If the secondary `attributeExpressionMap` parameter is not provided, a new instance will be created. * This allows for reusing an existing map when building complex expressions with other parser functions. * * @param update - The update object to parse. * @param attributeExpressionMap - An optional `AttributeExpressionMap` instance to use for attribute names and values. * @throws DocumentBuilderError if the update object is empty. */ declare function parseUpdate(update: UpdateValues, attributeExpressionMap?: AttributeExpressionMap): UpdateParserResult; export { parseUpdate }; export type { UpdateParserResult };