import * as prismic from "@prismicio/client"; import type { NodePluginArgs } from "gatsby"; import type { FieldModelValueType, PrismicDocumentForModel } from "../types"; import type { PluginOptions } from "../types"; type NormalizeDocumentFieldArgs = { model: Model; value: FieldModelValueType; path: string[]; gatsbyNodeArgs: NodePluginArgs; pluginOptions: PluginOptions; sharedSliceModels: prismic.SharedSliceModel[]; }; type NormalizeDocumentFieldReturnType = Model extends prismic.CustomTypeModelGroupField ? prismic.GroupField<{ [P in keyof NonNullable["fields"]>]: NormalizeDocumentFieldReturnType["fields"]>[P]>; }> : Model extends prismic.CustomTypeModelLinkField ? FieldModelValueType & { localFile: string | null; } : Model extends prismic.CustomTypeModelEmbedField ? string | null : Model extends prismic.CustomTypeModelImageField ? FieldModelValueType & { localFile: string | null; } & { [ThumbnailName in keyof ThumbnailNames]: prismic.ImageFieldImage & { localFile: string | null; }; } : Model extends prismic.CustomTypeModelIntegrationField ? string | null : FieldModelValueType; type NormalizeDocumentArgs = Omit & { document: PrismicDocumentForModel; model: Model; }; export declare const normalizeDocument: (args: NormalizeDocumentArgs) => Promise, "data"> & { data: Record; }>; export {};