import type { Table } from '../../../table/index.js';
import { TableAction } from '../../../table/index.js';
import type { Key, KeyValue } from '../../../table/types/index.js';
/**
* Returns the TS type of a Table Primary Key
*
* @param TABLE Table
* @return Object
*/
export type PrimaryKey
= {
[KEY in TABLE['partitionKey'] | (TABLE extends {
sortKey?: Key;
} ? NonNullable : never) as KEY['name']]: KeyValue;
};
export declare class PrimaryKeyParser extends TableAction {
static actionName: "parsePrimaryKey";
constructor(table: TABLE);
parse(keyInput: {
[KEY: string]: unknown;
}): PrimaryKey