import type { ID } from './constants'; import type { Intersect } from '../utils'; import type * as UID from '../uid'; import type { AttributeNames, AttributeValueByName } from '../schema'; /** * A type used as the identifier for a document. */ export type DocumentID = string; /** * Represents a content-type entry. * * @template TContentTypeUID - The content-type schema UID * @template TContentTypeKeys - A union of keys to be returned in the final object. If not specified, defaults to all the keys. */ export type ContentType = AttributeNames> = Intersect<[ { id: ID; documentId: DocumentID; }, Pick, TContentTypeKeys> ]>; type AttributeValues = { [TAttributeName in AttributeNames]?: AttributeValueByName | null; }; export {}; //# sourceMappingURL=content-type.d.ts.map