/** *
*

Official DynamoDB adapter for Auth.js / NextAuth.js.

* * * *
* * ## Installation * * ```bash npm2yarn * npm install next-auth @auth/dynamodb-adapter * ``` * * @module @auth/dynamodb-adapter */ import type { DynamoDBDocument } from "@aws-sdk/lib-dynamodb"; import { type Adapter } from "@auth/core/adapters"; export interface DynamoDBAdapterOptions { tableName?: string; partitionKey?: string; sortKey?: string; indexName?: string; indexPartitionKey?: string; indexSortKey?: string; } export declare function DynamoDBAdapter(client: DynamoDBDocument, options?: DynamoDBAdapterOptions): Adapter; declare const format: { /** Takes a plain old JavaScript object and turns it into a DynamoDB object */ to(object: Record): Record; /** Takes a Dynamo object and returns a plain old JavaScript object */ from>(object?: Record): T | null; }; declare function generateUpdateExpression(object: Record): { UpdateExpression: string; ExpressionAttributeNames: Record; ExpressionAttributeValues: Record; }; export { format, generateUpdateExpression }; //# sourceMappingURL=index.d.ts.map