import type { CustomType } from "@prismicio/types-internal/lib/customtypes"; import { type PropsWithChildren, type ReactNode } from "react"; type CustomTypeFormat = CustomType["format"]; interface FieldContextValue { customTypeFormat: CustomTypeFormat; isInSlice: boolean; isInGroup: boolean; isInRepeatable: boolean; } interface RootFieldContextProviderProps { customTypeFormat: CustomTypeFormat; children: ReactNode; } /** * Provides extra context to the fields below. * Use it only once at the root of the fields tree. */ export declare function RootFieldContextProvider(props: RootFieldContextProviderProps): JSX.Element; /** * Overrides the field context to indicate that the field is in a slice. */ export declare function FieldInSliceContextProvider(props: PropsWithChildren): JSX.Element; /** * Overrides the field context to indicate that the field is in a group. */ export declare function FieldInGroupContextProvider(props: PropsWithChildren): JSX.Element; /** * Overrides the field context to indicate that the field is repeatable. */ export declare function FieldInRepeatableContextProvider(props: PropsWithChildren): JSX.Element; export declare function useFieldContext(): FieldContextValue | undefined; export {};