import { aws_dynamodb } from "aws-cdk-lib"; import { FormatObject, JsonFormat } from "typesafe-dynamodb/lib/json-format"; import { TableKey } from "typesafe-dynamodb/lib/key"; import { Narrow } from "typesafe-dynamodb/lib/narrow"; import { ITable } from "./table"; import { AttributeKeyToObject } from "./util"; export interface GetItemInput, Format extends JsonFormat = JsonFormat.Document> extends Omit { Key: Key; } export interface GetItemOutput, Format extends JsonFormat = JsonFormat.Document> extends Omit { Item?: FormatObject, Format>; } export declare type GetItem = >(input: GetItemInput) => Promise>; export declare function createGetItemIntegration(table: aws_dynamodb.ITable, format: Format): GetItem; /** * @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 GetItemAppsync = >(input: { key: Key; consistentRead?: boolean; }) => Promise, JsonFormat.Document>>; export declare function createGetItemAppsyncIntegration(table: ITable): GetItemAppsync; //# sourceMappingURL=get-item.d.ts.map