import type { Worklet, WorkletRefImpl } from './bindings/types.js'; type MainThreadObjectFactory = (initialValue: unknown) => object; declare function registerMainThreadObjectType(type: string, create: MainThreadObjectFactory | Worklet): void; declare function createMainThreadObject(refImpl: WorkletRefImpl): object; declare function isRealizedMainThreadObject(value: object): boolean; declare function assertCompatibleMainThreadObject(handle: WorkletRefImpl, value: object, operation: 'hydration' | 'initialization patch'): void; declare function initMainThreadObjects(): void; export { type MainThreadObjectFactory, initMainThreadObjects, registerMainThreadObjectType, createMainThreadObject, assertCompatibleMainThreadObject, isRealizedMainThreadObject, };