export type FrontendModelTransportSerializationOptions = { /** * - IANA timezone used when serializing Date instants. */ timeZone?: string | undefined; }; export type NormalizedFrontendModelTransportSerializationOptions = { /** * - Validated IANA timezone used when serializing Date instants. */ timeZone: string | undefined; }; /** * Assign a key to a plain object without triggering the `__proto__` setter. * Uses `Object.defineProperty` so that keys like `__proto__` are stored as * own data properties instead of mutating the object's prototype chain. This * lets callers receive a regular `{}` object (with `Object.prototype` and a * normal `constructor.name`) while still preventing prototype pollution. * @param {Record>} target - Target object. * @param {string} key - Property key. * @param {ReturnType} value - Property value. * @returns {void} */ export declare function assignSafeProperty(target: Record>, key: string, value: ReturnType): void; /** * Runs the isBackendModelInstance helper. * @param {ReturnType} value - Candidate value. * @returns {value is {attributes: () => Record>, constructor: {getModelName?: () => string, name?: string}, getModelClass: () => typeof import("../database/record/index.js").default, getRelationshipByName: (relationshipName: string) => {getPreloaded: () => boolean, loaded: () => ReturnType}}} - Whether value looks like a backend model instance. */ export declare function isBackendModelInstance(value: ReturnType): value is { attributes: () => Record>; constructor: { getModelName?: () => string; name?: string; }; getModelClass: () => typeof import("../database/record/index.js").default; getRelationshipByName: (relationshipName: string) => { getPreloaded: () => boolean; loaded: () => ReturnType; }; }; /** * Runs the serializeFrontendModelTransportValue helper. * @param {ReturnType} value - Value to serialize. * @param {FrontendModelTransportSerializationOptions} [options] - Serialization options. * @returns {ReturnType} - Serialized value with transport markers. */ export declare function serializeFrontendModelTransportValue(value: ReturnType, options?: FrontendModelTransportSerializationOptions): ReturnType; /** * Runs the deserializeFrontendModelTransportValue helper. * @param {ReturnType} value - Value to deserialize. * @returns {ReturnType} - Deserialized value with transport markers restored. */ export declare function deserializeFrontendModelTransportValue(value: ReturnType): ReturnType; //# sourceMappingURL=transport-serialization.d.ts.map