import { type CustomField, type SimpleField } from "@dao-xyz/borsh"; /** * Register a Borsh field backed by an accessor and explicitly preserve that * accessor when Documents wraps an indexed value with its local context. * * The accessor must not inherit from another Borsh-decorated class, must be * defined directly on `clazz.prototype`, have both a getter and setter, and be * safe when invoked with the generated wrapper as `this`. In particular, it * cannot depend on private fields, constructor-only state, or state stored in a * WeakMap keyed by instances of `clazz`. The setter is invoked while Borsh * deserializes persisted index rows. */ export declare const registerIndexFieldAccessor: (clazz: Function, key: string, properties: SimpleField | CustomField) => void; export declare const copySerialization: (sourceClazz: any, targetClazz: any) => void; //# sourceMappingURL=borsh.d.ts.map