/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ type CloneFn = (value: T) => T; /** * Marks the given object or instances of the given class as platform objects. * * Optionally, it sets the clone function for that platform object, which is a * simplification of the serializable attribute of the Web interface. */ export declare function setPlatformObject(obj: { prototype: unknown; }, options?: { clone: CloneFn; }): void; export declare function setPlatformObject(obj: T, options?: { clone: CloneFn; }): void; /** * Indicates if the given object is a platform object. */ export declare function isPlatformObject(obj: T): boolean; /** * Returns the clone function for the given platform object, if it was set. */ export declare function getPlatformObjectClone(obj: T): ((value: T) => T) | undefined; export {}; //# sourceMappingURL=PlatformObjects.d.ts.map