import type { WidgetKey } from "@prismicio/types-internal/lib/common"; import { Document, FieldOrSliceType, WidgetContent } from "@prismicio/types-internal/lib/content"; import type { CustomTypeDef } from "../customtypes"; import type { DocumentMetadata } from "./DocumentMetadata"; import type { ApiDocument } from "./index"; export declare class DocumentReader { doc: ApiDocument; id: string; version: string; type: string; groupLangId: string; tags: string[]; language: string; first_publication_date: string | undefined; last_publication_date: string | undefined; metadata: DocumentMetadata | undefined; _contentMeta: { fieldTypes: Map; widgets: Partial>; } | undefined; slugs: ReadonlyArray; uid: string | undefined; customType?: CustomTypeDef | undefined; private parsed; private fullyParsed; constructor(doc: ApiDocument, customType?: CustomTypeDef | undefined); get contentMeta(): { fieldTypes: Map; widgets: Partial>; }; getWidget(key: string): WidgetContent | undefined; parseAll(): { doc: Document; slugs: readonly string[]; uid: string | undefined; }; }