import type { Condition } from '../../../entity/actions/parseCondition/index.js'; import type { Entity } from '../../../entity/index.js'; import type { CapacityOption } from '../../../options/capacity.js'; import type { NoEntityMatchBehavior } from '../../../options/noEntityMatchBehavior.js'; import type { Query } from '../../../table/actions/query/index.js'; import type { Table } from '../../../table/index.js'; export type DeletePartitionOptions = Query
> = { capacity?: CapacityOption; exclusiveStartKey?: Record; entityAttrFilter?: boolean; noEntityMatchBehavior?: NoEntityMatchBehavior; filters?: Entity[] extends ENTITIES ? Record : { [ENTITY in ENTITIES[number] as ENTITY['entityName']]?: Condition; }; tableName?: string; } & (QUERY['index'] extends keyof TABLE['indexes'] ? TABLE['indexes'][QUERY['index']]['type'] extends 'global' ? { consistent?: false; } : { consistent?: boolean; } : { consistent?: boolean; });