import type { Document as DocumentT } from "@prismicio/types-internal/lib/content"; import type { CustomType } from "@prismicio/types-internal/lib/customtypes"; import { type MutableRefObject } from "react"; import type { DocumentMeta } from "./service"; /** * Allows the UID Field to directly communicate its important events * with an optional, external party without polluting all the parents in between. */ interface UIDContextValue { editedUID: MutableRefObject; onEditUID: () => void; } export declare const UIDContext: import("react").Context; export declare function hasUIDField(customType: CustomType): boolean; interface isMissingUIDArgs { content: DocumentT; customType: CustomType; } export declare function isMissingUID(args: isMissingUIDArgs): boolean; export interface GetConflictingUidDocumentsArgs { customTypeId: string; languageId: string; documentId: string | undefined; /** The list of documents to check for UID conflicts */ documentsWithUid: DocumentMeta[]; uid: string; } /** * Create a list of documents with the same UID as the given document. */ export declare function getConflictingUidDocuments(args: GetConflictingUidDocumentsArgs): DocumentMeta[]; export {};