import { aws_dynamodb } from "aws-cdk-lib"; import { JsonFormat } from "typesafe-dynamodb"; import { FormatObject } from "typesafe-dynamodb/lib/json-format"; import { TableKey } from "typesafe-dynamodb/lib/key"; import { Narrow } from "typesafe-dynamodb/lib/narrow"; import { DynamoDBAppsyncExpression } from "./appsync"; import { ReturnValues } from "./return-value"; import { ITable } from "./table"; import { AttributeKeyToObject } from "./util"; export declare type UpdateItemInput, ReturnValue extends ReturnValues | undefined, Format extends JsonFormat> = Omit & { Key: Key; ReturnValues?: ReturnValue; }; export interface UpdateItemOutput, ReturnValue extends ReturnValues | undefined, Format extends JsonFormat = JsonFormat.Document> extends Omit { Attributes?: ReturnValue extends undefined | "NONE" ? undefined : ReturnValue extends "ALL_OLD" | "ALL_NEW" ? FormatObject, Format> : Partial, Format>>; } export declare type UpdateItem = , Return extends ReturnValues | undefined = undefined>(input: UpdateItemInput) => Promise>; export declare function createUpdateItemIntegration(table: aws_dynamodb.ITable, format: Format): UpdateItem; export declare type UpdateItemAppsync = >(input: { key: Key; update: DynamoDBAppsyncExpression; condition?: DynamoDBAppsyncExpression; _version?: number; }) => Promise, JsonFormat.Document>>; export declare function createUpdateItemAppsyncIntegration(table: ITable): UpdateItemAppsync; //# sourceMappingURL=update-item.d.ts.map