import { CrudEntry, UpdateType } from '@powersync/common'; /** * @internal */ export type CrudEntryJSON = { id: string; data: string; tx_id?: number; }; /** * The output JSON seems to be a third type of JSON, not the same as the input JSON. */ type CrudEntryOutputJSON = { op_id: number; op: UpdateType; type: string; id: string; tx_id?: number; data?: Record; old?: Record; metadata?: string; }; /** * A single client-side change. * * @public */ export declare class CrudEntryImpl implements CrudEntry { clientId: number; id: string; op: UpdateType; opData?: Record; previousValues?: Record; table: string; transactionId?: number; metadata?: string; static fromRow(dbRow: CrudEntryJSON): CrudEntry; constructor(clientId: number, op: UpdateType, table: string, id: string, transactionId?: number, opData?: Record, previousValues?: Record, metadata?: string); toJSON(): CrudEntryOutputJSON; equals(entry: CrudEntry): boolean; /** * Generates an array for use in deep comparison operations */ toComparisonArray(): unknown[]; } export {};