import { Attribute, ProjectionType, Table } from 'aws-cdk-lib/aws-dynamodb'; import { IGrantable } from 'aws-cdk-lib/aws-iam'; import { DotStack } from '../constructs/Stack'; export { ProjectionType }; interface TableExistsOptions { scope: DotStack; tableName: string; } interface AddTableOptions { consumers?: IGrantable[]; name: string; partitionKey: Attribute; prefix?: boolean; producers?: IGrantable[]; retain?: boolean; scope: DotStack; sortKey?: Attribute; timeToLiveAttribute?: string; } interface AddGlobalIndexOptions { indexName: string; partitionKey: Attribute; projectionKeys?: string[]; projectionType: ProjectionType; } interface GrantRemoteOptions { consumers: IGrantable[]; scope: DotStack; tableName: string; } export { Attribute, AttributeType } from 'aws-cdk-lib/aws-dynamodb'; export declare const tableExists: ({ scope, tableName }: TableExistsOptions) => boolean; export declare const addTable: (options: AddTableOptions) => Table; export declare const addGlobalIndex: (table: Table, props: AddGlobalIndexOptions) => Promise; export declare const grantRemoteTable: ({ consumers, tableName, scope }: GrantRemoteOptions) => void;