import type { DocHandle } from '@automerge/automerge-repo'; import type * as Schema from 'effect/Schema'; import type { DocumentContent, Entity } from './types.js'; /** * Type utility to transform relation fields to accept string arrays or be omitted entirely. * This specifically targets Type.Relation fields which are arrays of objects. */ type RelationArrayKeys = { [K in keyof T]: T[K] extends readonly (infer U)[] ? U extends object ? K : never : T[K] extends (infer U)[] ? U extends object ? K : never : never; }[keyof T]; type WithRelationsAsStringArrays = Omit> & Partial, string[] | undefined>>; export declare const create: (handle: DocHandle, type: S) => (data: Readonly>>) => Entity; export {}; //# sourceMappingURL=create.d.ts.map