import type { WriteItemOptions } from '../../../entity/index.js'; import { EntityAction } from '../../../entity/index.js'; import type { Entity, InputItem, TransformedItem, ValidItem } from '../../../entity/index.js'; import { Parser } from '../../../schema/actions/parse/index.js'; import type { PrimaryKey } from '../../../table/actions/parsePrimaryKey/index.js'; import { $parser } from './constants.js'; import type { InferWriteItemOptions, ParseItemOptions } from './options.js'; type EntityParserInput> = OPTIONS extends { fill: false; } ? ValidItem : InputItem; export declare class EntityParser extends EntityAction { static actionName: 'parse'; [$parser]: Parser; constructor(entity: ENTITY); parse(input: unknown, options?: OPTIONS): { parsedItem: ValidItem>; item: TransformedItem> & PrimaryKey; key: PrimaryKey; }; reparse(input: EntityParserInput>, options?: OPTIONS): { parsedItem: ValidItem>; item: TransformedItem> & PrimaryKey; key: PrimaryKey; }; } export {};