import type { CollectionProp, DefaultElements, EntryMetaSysProps, KeyValueMap, MakeRequest, MetadataProps } from '../common-types'; import type { ContentfulEntryApi } from '../create-entry-api'; import type { AssetProps } from './asset'; export type EntryProps = { sys: EntryMetaSysProps; metadata?: MetadataProps; fields: T; }; export type CreateEntryProps = Omit, 'sys'>; export type EntryReferenceError = { sys: { type: 'error'; id: 'notResolvable'; }; details: { type: 'Link'; linkType: 'Entry' | 'Asset'; id: string; }; }; export interface EntryReferenceProps extends CollectionProp { includes?: { Entry?: EntryProps[]; Asset?: AssetProps[]; }; errors?: EntryReferenceError[]; } export type EntryReferenceOptionsProps = { include?: number; }; export interface Entry extends EntryProps, DefaultElements, ContentfulEntryApi { } export type WithResourceName = T extends { sys: infer Sys; } ? Omit & { sys: Sys & { urn: string; }; } : never; /** * @private * @param makeRequest - function to make requests via an adapter * @param data - Raw entry data * @return Wrapped entry data */ export declare function wrapEntry(makeRequest: MakeRequest, data: EntryProps): Entry; /** * Data is also mixed in with link getters if links exist and includes were requested * @private */ export declare const wrapEntryCollection: (makeRequest: MakeRequest, data: CollectionProp>) => import("../common-types").Collection>;