import { aws_dynamodb } from "aws-cdk-lib"; import { ToAttributeMap } from "typesafe-dynamodb/lib/attribute-value"; import { FormatObject, JsonFormat } 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 { ITable } from "./table"; import { AttributeKeyToObject } from "./util"; export declare type PutItemReturnValues = "NONE" | "ALL_OLD"; export interface PutItemInput extends Omit { Item: FormatObject; ReturnValues?: ReturnValue; } export interface PutItemOutput extends Omit { Attributes?: ReturnValue extends undefined | "NONE" ? undefined : FormatObject; } export declare type PutItem = (input: PutItemInput) => Promise>; export declare function createPutItemIntegration(table: aws_dynamodb.ITable, format: Format): PutItem; /** * @see https://docs.aws.amazon.com/appsync/latest/devguide/resolver-mapping-template-reference-dynamodb.html#aws-appsync-resolver-mapping-template-reference-dynamodb-getitem */ export declare type PutItemAppsync = >(input: { key: Key; attributeValues: ToAttributeMap, JsonFormat.Document>, Exclude>>; condition?: DynamoDBAppsyncExpression; _version?: number; }) => Promise, JsonFormat.Document>>; export declare function createPutItemAppsyncIntegration(table: ITable): PutItemAppsync; //# sourceMappingURL=put-item.d.ts.map