import { RichValue } from '@sentio/protos'; import type { String, Int, Float, ID, Bytes, Timestamp, Boolean } from './types.js'; import { BigDecimal } from '@sentio/bigdecimal'; export interface ValueConverter { from: (value: T) => RichValue; to: (value: RichValue) => T; required?: boolean; isArray?: boolean; isRelation?: boolean; relationName?: string; } export declare const ValueRequiredError: Error; export declare function required_(converter: ValueConverter): ValueConverter; export declare function array_(converter: ValueConverter): ValueConverter; export declare function enumerate_(values: Record): ValueConverter; export declare function objectId_(entityName: string): ValueConverter; export declare const StringConverter: ValueConverter; export declare const IntConverter: ValueConverter; export declare const Int8Converter: ValueConverter; export declare const FloatConverter: ValueConverter; export declare const BooleanConverter: ValueConverter; export declare const TimestampConverter: ValueConverter; export declare const BytesConverter: ValueConverter; export declare const IDConverter: ValueConverter; export declare const BigDecimalConverter: ValueConverter; export declare const BigIntConverter: ValueConverter; export declare function bytesToBigInt(bytes: Uint8Array): bigint; export declare const TypeConverters: Record>; //# sourceMappingURL=convert.d.ts.map