import { $o as PatchEvent, Aa as PrimitiveItemProps, Bi as BlockListItemProps, C as StateTree, D as TrackerContextGetSnapshot, Hi as BlockStyleProps, Ho as DocumentFieldAction, Mc as Locale, N as ReporterHook, Oa as ObjectItem, Oi as StringInputProps, Oo as FormNodePresence, Pc as LocaleDefinition, Qt as Workspace, Ri as BlockAnnotationProps, Vi as BlockProps, Wi as PortableTextPluginsProps, Xa as TargetPerspective, _ as VirtualizerScrollInstance, as as FormPatch, b as FormState, bi as NumberInputProps, bl as EditStateFor, ci as ObjectFieldProps, di as ArrayOfObjectsInputProps, ds as FormUnsetPatch, es as FormDecPatch, f as PatchChannel, hi as BooleanInputProps, ii as BooleanFieldProps, is as FormInsertPatchPosition, ka as ObjectItemProps, ls as FormSetIfMissingPatch, na as ObjectFormNode, ni as ArrayOfPrimitivesFieldProps, ns as FormIncPatch, pa as FieldsetRenderMembersCallback, pi as ArrayOfPrimitivesInputProps, qa as ReleaseId, qi as BaseFormNode, r as CopyPasteContextType, ra as ObjectRenderMembersCallback, rs as FormInsertPatch, si as NumberFieldProps, ti as ArrayFieldProps, ts as FormDiffMatchPatch, ui as StringFieldProps, us as FormSetPatch, w as ChangeIndicatorTrackerContextValue, xi as ObjectInputProps, y as FormDocumentValue, ys as PreviewProps, zi as BlockDecoratorProps } from "./types-1fG14RfY.js";
import { ComponentType, ElementType, HTMLProps, PropsWithChildren, ReactNode, RefAttributes } from "react";
import { Observable } from "rxjs";
import { DocumentDivergencesContextValue, LocaleContextValue } from "sanity/_singletons";
import { FallbackNs } from "react-i18next";
import { CrossDatasetReferenceSchemaType, CrossDatasetReferenceValue, DeprecatedProperty, FileValue, FormNodeValidation, GeopointValue, ImageValue, IndexTuple, KeyedSegment, ObjectSchemaType, Path, PathSegment, Reference, ReferenceSchemaType, ReferenceValue, Role, SanityDocument, Schema, SlugValue, ValidationMarker } from "@sanity/types";
import { AvatarPosition } from "@sanity/ui";
import { FlatNamespace, KeyPrefix, Namespace, TFunction, i18n } from "i18next";
declare function ChangeIndicatorsTrackerComponent(props: {
  children: React.ReactNode;
}): import("react").JSX.Element;
/**
 * @internal
 */
declare const ChangeIndicatorsTracker: import("react").MemoExoticComponent<typeof ChangeIndicatorsTrackerComponent>;
/**
 * @internal
 */
declare function useChangeIndicatorsReportedValues(): TrackerContextGetSnapshot<ChangeIndicatorTrackerContextValue>;
/**
 * @internal
 */
declare const useChangeIndicatorsReporter: ReporterHook<ChangeIndicatorTrackerContextValue>;
/** @internal */
interface RelativeTimeOptions {
  minimal?: boolean;
  useTemporalPhrase?: boolean;
  relativeTo?: Date;
  timeZone?: string;
}
/** @internal */
declare function useRelativeTime(time: Date | string, options?: RelativeTimeOptions): string;
/** @internal */
interface ScrollContainerProps<T extends ElementType> extends Omit<HTMLProps<T>, 'as' | 'onScroll' | 'ref'> {
  as?: ElementType | keyof React.JSX.IntrinsicElements;
  onScroll?: (event: Event) => () => void;
}
declare function ScrollContainerComponent<T extends ElementType = 'div'>(props: ScrollContainerProps<T> & RefAttributes<HTMLDivElement>): import("react").JSX.Element;
/**
 * This provides a utility function for use within Sanity Studios to create scrollable containers
 * It also provides a way for components inside a scrollable container to track onScroll on their first parent scroll container
 * NOTE: this is used by different studio utilities to track positions of elements on screen
 * NOTE: It will call any given `onScroll` callback with a Native DOM Event, and not a React Synthetic event
 * NOTE: It will not make sure the element is actually scrollable, this still needs to be done with css as usual
 *
 * @internal
 */
declare const ScrollContainer: import("react").MemoExoticComponent<typeof ScrollContainerComponent>;
/** @internal */
declare function pathToString(path: Path): string;
/** @internal */
declare function getValueAtPath(rootValue: unknown, path: Path): unknown;
/** @internal */
declare function findIndex(array: unknown[], segment: PathSegment): number;
/** @internal */
declare function stringToPath(path: string): Path;
/** @internal */
declare function normalizePathSegment(segment: string): PathSegment;
/** @internal */
declare function normalizeIndexSegment(segment: string): PathSegment;
/** @internal */
declare function normalizeKeySegment(segment: string): KeyedSegment;
/** @internal */
declare function normalizeIndexTupleSegment(segment: string): IndexTuple;
/** @internal */
declare function pathsAreEqual(pathA: Path, pathB: Path): boolean;
/** @internal */
declare function getItemKey(arrayItem: unknown): string | undefined;
/** @internal */
declare function getItemKeySegment(arrayItem: unknown): KeyedSegment | undefined;
/** @internal */
declare function isEmptyObject(item: unknown): boolean;
/** @internal */
type FIXME = any;
/** @internal */
interface FormFieldHeaderTextProps {
  /**
   *
   * @hidden
   * @beta
   */
  validation?: FormNodeValidation[];
  description?: ReactNode;
  /**
   * The unique ID used to target the actual input element
   */
  inputId?: string;
  title?: ReactNode;
  deprecated?: DeprecatedProperty;
  /**
   * Additional content to be rendered alongside the title
   */
  suffix?: ReactNode;
}
/** @internal */
declare const FormFieldHeaderText: import("react").MemoExoticComponent<(props: FormFieldHeaderTextProps) => import("react").JSX.Element>;
/** @internal */
type FormInputAbsolutePathArg = {
  absolutePath: Path;
};
/** @internal */
type FormInputRelativePathArg = {
  relativePath: Path;
};
/** @internal */
declare const FormInput: import("react").MemoExoticComponent<(props: (ArrayOfObjectsInputProps | ObjectInputProps) & (FormInputRelativePathArg | FormInputAbsolutePathArg) & {
  /**
   * Whether to include the field around the input. Defaults to false
   */
  includeField?: boolean;
  includeItem?: boolean;
}) => import("react").JSX.Element>;
interface PropsEnabled extends PropsWithChildren {
  enabled: true;
  formState: FormState;
  upstreamEditState: EditStateFor;
  editState: EditStateFor;
  subjectId: string;
  schemaType: ObjectSchemaType;
}
interface PropsDisabled extends PropsWithChildren {
  enabled: false;
}
type Props = PropsEnabled | PropsDisabled;
/**
 * @internal
 */
declare const DivergencesProvider: ComponentType<Props>;
/**
 * @internal
 */
declare function useDocumentDivergences(): DocumentDivergencesContextValue;
/**
 * @internal
 */
interface VirtualizerScrollInstanceProviderProps extends VirtualizerScrollInstance {
  children: ReactNode;
}
/**
 *
 * @internal
 */
declare function VirtualizerScrollInstanceProvider(props: VirtualizerScrollInstanceProviderProps): import("react").JSX.Element;
/** @internal */
declare const SANITY_PATCH_TYPE: unique symbol;
/**
 * @hidden
 * @beta */
declare function setIfMissing(value: any, path?: Path): FormSetIfMissingPatch;
/**
 * @hidden
 * @beta */
declare function insert(items: any[], position: FormInsertPatchPosition, path?: Path): FormInsertPatch;
/**
 * @hidden
 * @beta */
declare function set(value: any, path?: Path): FormSetPatch;
/**
 * @hidden
 * @beta */
declare function unset(path?: Path): FormUnsetPatch;
/**
 * @hidden
 * @beta */
declare function diffMatchPatch(value: string, path?: Path): FormDiffMatchPatch;
/**
 * @hidden
 * @beta */
declare function inc(amount?: number, path?: Path): FormIncPatch;
/**
 * @hidden
 * @beta */
declare function dec(amount?: number, path?: Path): FormDecPatch;
/** @internal */
declare function prefixPath<T extends {
  path: Path;
}>(patch: T, segment: PathSegment): T;
/** @internal */
declare function setAtPath<T>(currentTree: StateTree<T> | undefined, path: Path, value: T): StateTree<T>;
/** @internal */
interface ExpandPathOperation {
  type: 'expandPath';
  path: Path;
}
/** @internal */
interface ExpandFieldSetOperation {
  type: 'expandFieldSet';
  path: Path;
}
/** @internal */
interface SetActiveGroupOperation {
  type: 'setSelectedGroup';
  path: Path;
  groupName: string;
}
/** @internal */
type ExpandOperation = ExpandPathOperation | ExpandFieldSetOperation | SetActiveGroupOperation;
/**
 * This takes a form state and returns a list of operations required to open a node at a particular path
 * @param node - The base form node (i.e. the form state node for the _document_)
 * @param path - The path to open
 *
 * @internal
 */
declare function getExpandOperations(node: BaseFormNode, path: Path): ExpandOperation[];
/**
 *
 * @hidden
 * @beta
 */
type StudioCrossDatasetReferenceInputProps = ObjectInputProps<CrossDatasetReferenceValue, CrossDatasetReferenceSchemaType>;
/**
 *
 * @hidden
 * @beta
 */
declare function StudioCrossDatasetReferenceInput(props: StudioCrossDatasetReferenceInputProps): import("react").JSX.Element;
/**
 *
 * @hidden
 * @beta
 */
type StudioReferenceInputProps = ObjectInputProps<Reference, ReferenceSchemaType>;
/**
 *
 * @hidden
 * @beta
 */
declare function StudioReferenceInput(props: StudioReferenceInputProps): import("react").JSX.Element;
declare module '@sanity/types' {
  /**
   *
   * @hidden
   * @beta
   */
  interface ArrayOfObjectsComponents {
    annotation?: ComponentType<BlockAnnotationProps>;
    block?: ComponentType<BlockProps>;
    diff?: ComponentType<any>;
    field?: ComponentType<ArrayFieldProps>;
    inlineBlock?: ComponentType<BlockProps>;
    input?: ComponentType<ArrayOfObjectsInputProps>;
    item?: ComponentType<ObjectItemProps>;
    preview?: ComponentType<PreviewProps>;
    portableText?: {
      plugins: ComponentType<PortableTextPluginsProps>;
    };
  }
  /**
   *
   * @hidden
   * @beta
   */
  interface ArrayOfPrimitivesComponents {
    diff?: ComponentType<any>;
    field?: ComponentType<ArrayOfPrimitivesFieldProps>;
    input?: ComponentType<ArrayOfPrimitivesInputProps>;
    item?: ComponentType<PrimitiveItemProps>;
    preview?: ComponentType<PreviewProps>;
  }
  /**
   *
   * @hidden
   * @beta
   */
  interface BooleanComponents {
    diff?: ComponentType<any>;
    field?: ComponentType<BooleanFieldProps>;
    input?: ComponentType<BooleanInputProps>;
    item?: ComponentType<PrimitiveItemProps>;
    preview?: ComponentType<PreviewProps>;
  }
  /**
   *
   * @hidden
   * @beta
   */
  interface DateComponents {
    diff?: ComponentType<any>;
    field?: ComponentType<StringFieldProps>;
    input?: ComponentType<StringInputProps>;
    item?: ComponentType<PrimitiveItemProps>;
    preview?: ComponentType<PreviewProps>;
  }
  /**
   *
   * @hidden
   * @beta
   */
  interface DatetimeComponents {
    diff?: ComponentType<any>;
    field?: ComponentType<StringFieldProps>;
    input?: ComponentType<StringInputProps>;
    item?: ComponentType<PrimitiveItemProps>;
    preview?: ComponentType<PreviewProps>;
  }
  /**
   *
   * @hidden
   * @beta
   */
  interface DocumentComponents {
    diff?: ComponentType<any>;
    field?: ComponentType<ObjectFieldProps>;
    input?: ComponentType<ObjectInputProps>;
    item?: ComponentType<ObjectItemProps>;
    preview?: ComponentType<PreviewProps>;
  }
  /**
   *
   * @hidden
   * @beta
   */
  interface FileComponents {
    annotation?: ComponentType<BlockAnnotationProps>;
    block?: ComponentType<BlockProps>;
    diff?: ComponentType<any>;
    field?: ComponentType<ObjectFieldProps<FileValue>>;
    inlineBlock?: ComponentType<BlockProps>;
    input?: ComponentType<ObjectInputProps<FileValue>>;
    item?: ComponentType<ObjectItemProps<FileValue & ObjectItem>>;
    preview?: ComponentType<PreviewProps>;
  }
  /**
   *
   * @hidden
   * @beta
   */
  interface GeopointComponents {
    annotation?: ComponentType<BlockAnnotationProps>;
    block?: ComponentType<BlockProps>;
    diff?: ComponentType<any>;
    field?: ComponentType<ObjectFieldProps<GeopointValue>>;
    inlineBlock?: ComponentType<BlockProps>;
    input?: ComponentType<ObjectInputProps<GeopointValue>>;
    item?: ComponentType<ObjectItemProps<GeopointValue & ObjectItem>>;
    preview?: ComponentType<PreviewProps>;
  }
  /**
   *
   * @hidden
   * @beta
   */
  interface ImageComponents {
    annotation?: ComponentType<BlockAnnotationProps>;
    block?: ComponentType<BlockProps>;
    diff?: ComponentType<any>;
    field?: ComponentType<ObjectFieldProps<ImageValue>>;
    inlineBlock?: ComponentType<BlockProps>;
    input?: ComponentType<ObjectInputProps<ImageValue>>;
    item?: ComponentType<ObjectItemProps<ImageValue & ObjectItem>>;
    preview?: ComponentType<PreviewProps>;
  }
  /**
   *
   * @hidden
   * @beta
   */
  interface NumberComponents {
    diff?: ComponentType<any>;
    field?: ComponentType<NumberFieldProps>;
    input?: ComponentType<NumberInputProps>;
    item?: ComponentType<PrimitiveItemProps>;
    preview?: ComponentType<PreviewProps>;
  }
  /**
   *
   * @hidden
   * @beta
   */
  interface ObjectComponents {
    annotation?: ComponentType<BlockAnnotationProps>;
    block?: ComponentType<BlockProps>;
    diff?: ComponentType<any>;
    field?: ComponentType<ObjectFieldProps>;
    inlineBlock?: ComponentType<BlockProps>;
    input?: ComponentType<ObjectInputProps>;
    item?: ComponentType<ObjectItemProps>;
    preview?: ComponentType<PreviewProps>;
  }
  /**
   *
   * @hidden
   * @beta
   */
  interface ReferenceComponents {
    annotation?: ComponentType<BlockAnnotationProps>;
    block?: ComponentType<BlockProps>;
    diff?: ComponentType<any>;
    field?: ComponentType<ObjectFieldProps<ReferenceValue>>;
    inlineBlock?: ComponentType<BlockProps>;
    input?: ComponentType<StudioReferenceInputProps>;
    item?: ComponentType<ObjectItemProps<ReferenceValue & ObjectItem>>;
    preview?: ComponentType<PreviewProps>;
  }
  /**
   *
   * @hidden
   * @beta
   */
  interface CrossDatasetReferenceComponents {
    annotation?: ComponentType<BlockAnnotationProps>;
    block?: ComponentType<BlockProps>;
    diff?: ComponentType<any>;
    field?: ComponentType<ObjectFieldProps<CrossDatasetReferenceValue>>;
    inlineBlock?: ComponentType<BlockProps>;
    input?: ComponentType<StudioCrossDatasetReferenceInputProps>;
    item?: ComponentType<ObjectItemProps<CrossDatasetReferenceValue & ObjectItem>>;
    preview?: ComponentType<PreviewProps>;
  }
  /**
   *
   * @hidden
   * @beta
   */
  interface SlugComponents {
    diff?: ComponentType<any>;
    field?: ComponentType<ObjectFieldProps<SlugValue>>;
    input?: ComponentType<ObjectInputProps<SlugValue>>;
    item?: ComponentType<ObjectItemProps<SlugValue & ObjectItem>>;
    preview?: ComponentType<PreviewProps>;
  }
  /**
   *
   * @hidden
   * @beta
   */
  interface SpanComponents {
    diff?: ComponentType<any>;
    field?: ComponentType<ObjectFieldProps>;
    input?: ComponentType<ObjectInputProps>;
    item?: ComponentType<ObjectItemProps>;
    preview?: ComponentType<PreviewProps>;
  }
  /**
   *
   * @hidden
   * @beta
   */
  interface StringComponents {
    diff?: ComponentType<any>;
    field?: ComponentType<StringFieldProps>;
    input?: ComponentType<StringInputProps>;
    item?: ComponentType<PrimitiveItemProps>;
    preview?: ComponentType<PreviewProps>;
  }
  /**
   *
   * @hidden
   * @beta
   */
  interface TextComponents {
    diff?: ComponentType<any>;
    field?: ComponentType<StringFieldProps>;
    input?: ComponentType<StringInputProps>;
    item?: ComponentType<PrimitiveItemProps>;
    preview?: ComponentType<PreviewProps>;
  }
  /**
   *
   * @hidden
   * @beta
   */
  interface UrlComponents {
    diff?: ComponentType<any>;
    field?: ComponentType<StringFieldProps>;
    input?: ComponentType<StringInputProps>;
    item?: ComponentType<PrimitiveItemProps>;
    preview?: ComponentType<PreviewProps>;
  }
  /**
   *
   * @hidden
   * @beta
   */
  interface EmailComponents {
    diff?: ComponentType<any>;
    field?: ComponentType<StringFieldProps>;
    input?: ComponentType<StringInputProps>;
    item?: ComponentType<PrimitiveItemProps>;
    preview?: ComponentType<PreviewProps>;
  }
  interface ArrayDefinition {
    /**
     *
     * @hidden
     * @beta
     */
    components?: ArrayOfObjectsComponents | ArrayOfPrimitivesComponents;
  }
  interface BlockDefinition {
    /**
     * Components for the block schema type
     *
     * @public
     * @remarks - This only applies to the block text type, and not block object types (like images).
     * - Don't render arbitrary text nodes inside regular text blocks, as this will confuse the editor with
     * what is editable text and not. Make sure to wrap all nodes which are NOT part of the edited text inside a
     * container with `contentEditable={false}` and with `style={{userSelection: 'none'}}` so that
     * the editor can distinguish between editable text and non-editable text.
     * @example Example of custom block component with delete button next to it that removes the block.
     * ```ts
     * {
     *   block: (blockProps) => {
     *     return (
     *       <Flex>
     *         <Box flex={1}>{blockProps.renderDefault(blockProps)}</Box>
     *         <Box contentEditable={false} style={{userSelect: 'none'}}>
     *           <Button
     *             icon={TrashIcon}
     *             onClick={(event) => {
     *               event.preventDefault()
     *               blockProps.onRemove()
     *              }}
     *             />
     *         </Box>
     *       </Flex>
     *     )
     *   },
     * },
     * ```
     */
    components?: {
      block?: ComponentType<BlockProps>;
    };
  }
  interface BlockDecoratorDefinition {
    /**
     * Component for rendering a decorator.
     *
     * See also {@link BlockDecoratorProps | BlockDecoratorProps}
     *
     * @public
     * @remarks - Try not to hard code CSS properties that could be derived from `@sanity/ui`.
     * This will make sure your rendering looks good independent of the theme context it appears in.
     * - Don't render arbitrary text nodes as this will confuse the editor with
     * what is editable text and not. If you need arbitrary text, make sure to wrap them in in a
     * container with `contentEditable={false}`.
     * @example Example of rendering custom decorator that highlights text.
     * ```ts
     * const Highlight = (props: BlockDecoratorProps) => (
     *   <span style={{backgroundColor: '#ff0'}}>
     *     {props.children}
     *   </span>
     * )
     * ```
     */
    component?: ComponentType<BlockDecoratorProps>;
  }
  interface BlockStyleDefinition {
    /**
     * Component for rendering a text style.
     *
     * See also {@link BlockStyleProps | BlockStyleProps}
     *
     * @public
     * @remarks - Try not to hard code CSS properties that could be derived from `@sanity/ui`.
     * This will make sure your rendering looks good independent of the theme context it appears in.
     * - Don't render arbitrary text nodes as this will confuse the editor with
     * what is editable text and not. If you need arbitrary text, make sure to wrap them in in a
     * container with `contentEditable={false}`.
     * @example Example of rendering a custom style for article leads which is bigger,
     * and bolder, but will adapt to what the current `@sanity/ui` theme has defined
     * as actual values for weight "bold" and `size={3}`.
     * ```ts
     * import {Text} from '@sanity/ui'
     *
     * const LeadStyle = (props: BlockStyleProps) => (
     *   <Text weight="bold" size={3}>
     *     {props.children}
     *   </Text>
     * )
     * ```
     */
    component?: ComponentType<BlockStyleProps>;
  }
  interface BlockListDefinition {
    /**
     * Component for rendering a block as a list item
     *
     * See also {@link BlockListItemProps | BlockListItemProps}
     *
     * @public
     * @remarks - Try not to hard code CSS properties that could be derived from `@sanity/ui`.
     * This will make sure your rendering looks good independent of the theme context it appears in.
     * - Don't render arbitrary text nodes as this will confuse the editor with
     * what is editable text and not. If you need arbitrary text, make sure to wrap them in in a
     * container with `contentEditable={false}`.
     */
    component?: ComponentType<BlockListItemProps>;
  }
  interface BlockAnnotationDefinition {
    /**
     *
     * @hidden
     * @beta
     */
    components?: {
      annotation?: ComponentType<BlockAnnotationProps>;
    };
  }
  interface BooleanDefinition {
    components?: BooleanComponents;
  }
  interface DateDefinition {
    /**
     *
     * @hidden
     * @beta
     */
    components?: DateComponents;
  }
  interface DatetimeDefinition {
    components?: DatetimeComponents;
  }
  interface DocumentDefinition {
    /**
     *
     * @hidden
     * @beta
     */
    components?: DocumentComponents;
  }
  interface FileDefinition {
    /**
     *
     * @hidden
     * @beta
     */
    components?: FileComponents;
  }
  interface GeopointDefinition {
    /**
     *
     * @hidden
     * @beta
     */
    components?: GeopointComponents;
  }
  interface ImageDefinition {
    /**
     *
     * @hidden
     * @beta
     */
    components?: ImageComponents;
  }
  interface NumberDefinition {
    /**
     *
     * @hidden
     * @beta
     */
    components?: NumberComponents;
  }
  interface ObjectDefinition {
    /**
     *
     * @hidden
     * @beta
     */
    components?: ObjectComponents;
    /**
     * Callback that allows developers to customize the members of the object input.
     * It can be used to add decoration members to the object input, instead of using empty fields.
     * For example:
     * ```ts
     * import { Decoration } from './Decoration'
     *
     * renderMembers: (members) => {
     *   return [
     *     ...members,
     *     {
     *       key: 'decoration',
     *       kind: 'decoration',
     *       component: Decoration,
     *     },
     *   ]
     * ```
     *
     * @hidden
     * @beta
     */
    renderMembers?: ObjectRenderMembersCallback;
  }
  interface FieldsetDefinition {
    /**
     * Callback that allows developers to customize the members present in the fieldset.
     * It can be used to add decoration members to the fieldset, instead of using empty fields.
     * For example:
     * ```ts
     * import { Decoration } from './Decoration'
     *
     * renderMembers: (members) => {
     *   return [
     *     ...members,
     *     {
     *       key: 'decoration',
     *       kind: 'decoration',
     *       component: Decoration,
     *     },
     *   ]
     * ```
     *
     * @hidden
     * @beta
     */
    renderMembers?: FieldsetRenderMembersCallback;
  }
  interface MultiFieldSet {
    /**
     * Callback that allows developers to customize the members present in the fieldset.
     * It can be used to add decoration members to the fieldset, instead of using empty fields.
     * For example:
     * ```ts
     * import { Decoration } from './Decoration'
     *
     * renderMembers: (members) => {
     *   return [
     *     ...members,
     *     {
     *       key: 'decoration',
     *       kind: 'decoration',
     *       component: Decoration,
     *     },
     *   ]
     * ```
     *
     * @hidden
     * @beta
     */
    renderMembers?: FieldsetRenderMembersCallback;
  }
  interface ReferenceDefinition {
    /**
     *
     * @hidden
     * @beta
     */
    components?: ReferenceComponents;
  }
  interface CrossDatasetReferenceDefinition {
    /**
     *
     * @hidden
     * @beta
     */
    components?: CrossDatasetReferenceComponents;
  }
  interface SlugDefinition {
    /**
     *
     * @hidden
     * @beta
     */
    components?: SlugComponents;
  }
  interface SpanDefinition {
    components?: SpanComponents;
  }
  interface StringDefinition {
    /**
     *
     * @hidden
     * @beta
     */
    components?: StringComponents;
  }
  interface TextDefinition {
    /**
     *
     * @hidden
     * @beta
     */
    components?: TextComponents;
  }
  interface UrlDefinition {
    /**
     *
     * @hidden
     * @beta
     */
    components?: UrlComponents;
  }
  interface EmailDefinition {
    /**
     *
     * @hidden
     * @beta
     */
    components?: EmailComponents;
  }
}
/**
 * @alpha
 */
interface FormBuilderProps extends Omit<ObjectFormNode, 'level' | 'path' | 'presence' | 'validation' | '_allMembers' | '__unstable_computeDiff' | 'displayInlineChanges' | 'changedFromBaseVariant' | 'hasBaseVariant'> {
  /**
   * Whether the value differs to the document's base variant.
   */
  changedFromBaseVariant?: boolean;
  /**
   * Whether the document has a base variant.
   */
  hasBaseVariant?: boolean;
  /** @internal */
  __internal_fieldActions?: DocumentFieldAction[];
  /** @internal Considered internal – do not use. */
  __internal_patchChannel: PatchChannel;
  /** @internal Considered internal – do not use. */
  __internal_inspectOpen?: boolean;
  autoFocus?: boolean;
  changesOpen?: boolean;
  collapsedFieldSets: StateTree<boolean> | undefined;
  collapsedPaths: StateTree<boolean> | undefined;
  focused: boolean | undefined;
  focusPath: Path;
  id: string;
  onChange: (changeEvent: PatchEvent) => void;
  onFieldGroupSelect: (path: Path, groupName: string) => void;
  onPathBlur: (path: Path) => void;
  onPathFocus: (path: Path) => void;
  onPathOpen: (path: Path) => void;
  onSetFieldSetCollapsed: (path: Path, collapsed: boolean) => void;
  onSetPathCollapsed: (path: Path, collapsed: boolean) => void;
  openPath?: Path;
  perspective?: TargetPerspective;
  presence: FormNodePresence[];
  readOnly?: boolean;
  schemaType: ObjectSchemaType;
  validation: ValidationMarker[];
  value: FormDocumentValue | undefined;
  compareValue?: SanityDocument;
}
/**
 * @alpha
 */
declare function FormBuilder(props: FormBuilderProps): import("react").JSX.Element;
type PatchTransformer = (patches: FormPatch[]) => FormPatch[];
/**
 * @hidden
 * @beta */
declare const TransformPatches: import("react").MemoExoticComponent<(props: {
  transform: PatchTransformer;
} & {
  children: ReactNode;
}) => import("react").JSX.Element>;
/**
 * Options for the `useDateTimeFormat` hook
 *
 * @public
 */
type UseDateTimeFormatOptions = Omit<Intl.DateTimeFormatOptions, 'fractionalSecondDigits'>;
/**
 * Returns an instance of `Intl.DateTimeFormat` that uses the currently selected locale,
 * and enables locale and culture-sensitive date formatting.
 *
 * @param options - Optional options for the date/time formatter
 * @returns Instance of `Intl.DateTimeFormat`
 * @public
 */
declare function useDateTimeFormat(options?: UseDateTimeFormatOptions): Intl.DateTimeFormat;
/**
 * React hook that returns the schema registry for the current project
 *
 * @public
 * @returns The schema registry for the current project
 * @example Using the `useSchema` hook
 * ```ts
 * function MyComponent() {
 *   const schema = useSchema()
 *   // ... do something with the schema ...
 * }
 * ```
 */
declare function useSchema(): Schema;
/**
 * @internal
 * @hidden
 */
declare function LocaleProvider(props: PropsWithChildren): import("react").JSX.Element;
/**
 * @internal
 * @hidden
 */
declare function LocaleProviderBase({ projectId, sourceId, locales, i18next, children }: PropsWithChildren<{
  projectId: string;
  sourceId: string;
  locales: Locale[];
  i18next: i18n;
}>): import("react").JSX.Element;
/**
 * Returns the currently active locale
 *
 * @public
 */
declare function useCurrentLocale(): Locale;
/**
 * @hidden
 * @internal
 */
declare function useLocale(): LocaleContextValue;
/**
 * Inlined from `react-i18next/helpers`, as our TSC doesn't support importing from it.
 */
type $Tuple<T> = readonly [T?, ...T[]];
/**
 * Return value from the `useTranslate` hook
 *
 * @public
 */
type UseTranslationResponse<Ns extends Namespace, KPrefix> = {
  /**
   * The translate function for the given namespace(s)
   */
  t: TFunction<Ns, KPrefix>;
};
/**
 * Options for the `useTranslate` hook
 *
 * @public
 */
interface UseTranslationOptions<KPrefix> {
  /**
   * @deprecated Avoid using this, it may be
   */
  keyPrefix?: KPrefix;
  lng?: string;
}
/**
 * Returns a `t` translator function for the given namespace.
 *
 * If the given namespace is not loaded, it will trigger a suspense, and the component will resume
 * rendering once the namespace is loaded.
 *
 * @public
 */
declare function useTranslation$1<Ns extends FlatNamespace | $Tuple<FlatNamespace> | undefined = undefined, KPrefix extends KeyPrefix<FallbackNs<Ns>> = undefined>(ns?: Ns, options?: UseTranslationOptions<KPrefix>): UseTranslationResponse<FallbackNs<Ns>, KPrefix>;
/**
 * The default US English locale for the studio.
 *
 * @internal
 * @hidden
 */
declare const usEnglishLocale: LocaleDefinition;
/**
 * The default locale for the studio.
 *
 * @internal
 * @hidden
 */
/** @alias */
declare const defaultLocale: LocaleDefinition;
/**
 * A map of component names to React components. The component names are the names used within the
 * locale resources, eg a key of `SearchTerm` should be rendered as `<SearchTerm/>` or
 * `<SearchTerm>{{term}}</SearchTerm>` (no whitespace in tag, nor attributes).
 *
 * Each component receives `children`, as well as any props provided through the `componentProps`
 * prop of `<Translate>`. Note that `componentProps` are forwarded to every component in this map
 * (including exotic ones like `memo` or `forwardRef` components) - intrinsic HTML tags
 * (eg `{strong: 'strong'}`) never receive them.
 *
 * @public
 */
type TranslateComponentMap<TComponentProps extends object = object> = Record<string, ComponentType<{
  children?: ReactNode;
} & TComponentProps> | keyof React.JSX.IntrinsicElements>;
/**
 * Props for the `Translate` component.
 *
 * @public
 */
interface TranslationProps<TComponentProps extends object = object> {
  /**
   * The `t` function to use, from the `useTranslation` hook
   */
  t: TFunction;
  /**
   * The i18n resource key to translate
   */
  i18nKey: string;
  /**
   * A map of component names to React components, used to render more complex content
   */
  components?: TranslateComponentMap<NoInfer<TComponentProps>>;
  /**
   * Props forwarded to every component declared in `components`. This makes it possible to
   * pass data to the components without defining them inline during render (which creates a new
   * component identity on every render, violating `react/no-unstable-nested-components`). Props are
   * only forwarded to components - intrinsic HTML tags (eg `{strong: 'strong'}`) never
   * receive them.
   */
  componentProps?: TComponentProps;
  /**
   * A string representing the "context" of the resource key.
   *
   * For an i18nKey of `greeter.greet-entity`, passing `context: 'human'` will look for a key of
   * `greeter.greet-entity_human` in the locale resources. If not found, it will fall back to the
   * base key (`greeter.greet-entity`).
   */
  context?: string;
  /**
   * A map of values to interpolate into the translated string. The resources should use the
   * double curly bracket annotation to use them, eg `{{petName}}`. Will be escaped by React,
   * so no need to escape HTML.
   */
  values?: Record<string, string | string[] | number | undefined>;
}
/**
 * Component for translating i18n resources.
 *
 * Note that this component is more expensive to render than using the `t` function from
 * `useTranslate` directly, so prefer that if possible. Generally, the only valid use case
 * for this component is when the translation needs to render a React component as part of
 * the message.
 *
 * @public
 */
declare function Translate<TComponentProps extends object = object>(props: TranslationProps<TComponentProps>): import("react").JSX.Element;
/**
 * @internal
 */
declare function PerspectiveProvider({ children, selectedPerspectiveName, selectedVariantName, excludedPerspectives }: {
  children: React.ReactNode;
  selectedPerspectiveName: 'published' | ReleaseId | undefined;
  selectedVariantName?: string;
  excludedPerspectives?: string[];
}): import("react").JSX.Element;
/** @internal */
interface FieldPresenceInnerProps {
  maxAvatars?: number;
  presence: FormNodePresence[];
  stack?: boolean;
  position?: AvatarPosition;
  animateArrowFrom?: AvatarPosition;
}
/** @internal */
declare const FieldPresenceInner: import("react").MemoExoticComponent<({ presence, position, animateArrowFrom, maxAvatars, stack }: FieldPresenceInnerProps) => import("react").JSX.Element>;
/** @internal */
interface FieldPresenceProps {
  presence: FormNodePresence[];
  maxAvatars: number;
  /**
   * The presence overlay draws the avatars where this component's placeholder was last measured,
   * and it re-measures when this component re-renders (the reporter publishes on every render).
   * Pass a value that changes whenever the surrounding layout moves the placeholder without
   * otherwise re-rendering this component (e.g. a field header making room for its actions on
   * hover): the changed prop is enough to trigger the re-render, it is not read.
   */
  layoutKey?: string;
}
/** @internal */
declare function FieldPresence(props: FieldPresenceProps): import("react").JSX.Element;
/**
 * @internal
 * @hidden
 * @deprecated Use `FieldPresence` instead
 * @alias
 */
declare const FieldPresenceWithOverlay: typeof FieldPresence;
/** @internal */
interface PresenceOverlayProps {
  children: ReactNode;
  margins?: [number, number, number, number];
}
/** @internal */
declare function PresenceOverlay({ children, margins }: PresenceOverlayProps): import("react").JSX.Element;
/**
 * @hidden
 * @beta */
interface ProjectData {
  id: string;
  displayName: string;
  /**
   * @deprecated Use the `/user-applications` endpoint instead, which lists all deployed studios/applications
   * @see https://www.sanity.io/help/studio-host-user-applications
   */
  studioHost: string | null;
  isBlocked: boolean;
  isDisabled: boolean;
  isDisabledByUser: boolean;
  metadata: {
    color: string;
    /**
     * @deprecated Use the `/user-applications` endpoint instead, which lists all deployed studios/applications
     * @see https://www.sanity.io/help/studio-host-user-applications
     */
    externalStudioHost: string;
  };
  maxRetentionDays: number;
  activityFeedEnabled: boolean;
  createdAt: string;
  updatedAt: string;
  organizationId: string;
  organization?: ProjectOrganizationData | null;
  members: {
    id: string;
    createdAt: string;
    updatedAt: string;
    isCurrentUser: boolean;
    isRobot: boolean;
    role: string;
    roles: Role[];
  }[];
  features: string[];
  pendingInvites: number;
}
/**
 * @hidden
 * @beta */
interface ProjectDatasetData {
  name: string;
  aclMode: 'public' | 'private';
  createdAt: string;
  createdByUserId: string;
  tags: {
    name: string;
    title: string;
  }[];
}
/**
 * @hidden
 * @beta */
type ProjectGrants = Record<string, {
  id: string;
  name: string;
  title: string;
  description: string | null;
  isCustom: boolean;
  config: Record<string, unknown>;
  grants: {
    name: string;
    params: Record<string, unknown>;
  }[];
}[] | undefined>;
/**
 * @hidden
 * @beta */
interface ProjectStore {
  get: () => Observable<ProjectData>;
  getDatasets: () => Observable<ProjectDatasetData[]>;
  getProjectName: () => Observable<string | null>;
  getOrganizationData: () => Observable<ProjectOrganizationData | null>;
  getOrganizationId: () => Observable<string | null>;
  getGrants: () => Observable<ProjectGrants>;
}
interface ProjectOrganizationData {
  requestAccessStatus: string;
  id: string;
  name: string;
  slug: string | null;
  telemetryConsentStatus: string;
  defaultRoleName: string;
  domains: string[];
  dashboardStatus: string;
  mediaLibraryStatus: string;
  aiFeaturesStatus: string;
  oauthAppsStatus: string;
  createdAt: string;
  updatedAt: string;
  deletedAt: string | null;
  createdByUserId: string;
}
/**
 * @beta
 * @hidden
 */
declare const CopyPasteProvider: React.FC<{
  children: ReactNode;
}>;
/**
 * @beta
 * @hidden
 */
declare const useCopyPaste: () => CopyPasteContextType;
/** @internal */
interface WorkspaceProviderProps {
  workspace: Workspace;
  children: React.ReactNode;
}
/** @internal */
declare function WorkspaceProvider({ children, workspace }: WorkspaceProviderProps): React.JSX.Element;
/**
 * @hidden
 * @beta */
declare function useWorkspace(): Workspace;
/** @internal */
declare const EMPTY_OBJECT: Record<string, unknown>;
/** @internal */
declare const EMPTY_ARRAY: never[];
export { insert as $, useLocale as A, useChangeIndicatorsReportedValues as At, StudioReferenceInputProps as B, TranslationProps as C, pathsAreEqual as Ct, UseTranslationResponse as D, RelativeTimeOptions as Dt, UseTranslationOptions as E, ScrollContainerProps as Et, useDateTimeFormat as F, ExpandPathOperation as G, StudioCrossDatasetReferenceInputProps as H, TransformPatches as I, setAtPath as J, SetActiveGroupOperation as K, FormBuilder as L, LocaleProviderBase as M, useSchema as N, useTranslation$1 as O, useRelativeTime as Ot, UseDateTimeFormatOptions as P, inc as Q, FormBuilderProps as R, TranslateComponentMap as S, pathToString as St, usEnglishLocale as T, ScrollContainer as Tt, ExpandFieldSetOperation as U, StudioCrossDatasetReferenceInput as V, ExpandOperation as W, dec as X, SANITY_PATCH_TYPE as Y, diffMatchPatch as Z, FieldPresenceInnerProps as _, isEmptyObject as _t, useWorkspace as a, DivergencesProvider as at, PerspectiveProvider as b, normalizeKeySegment as bt, ProjectData as c, FormInputAbsolutePathArg as ct, ProjectOrganizationData as d, FormFieldHeaderTextProps as dt, prefixPath as et, ProjectStore as f, FIXME as ft, FieldPresenceInner as g, getValueAtPath as gt, FieldPresence as h, getItemKeySegment as ht, WorkspaceProviderProps as i, VirtualizerScrollInstanceProvider as it, LocaleProvider as j, useChangeIndicatorsReporter as jt, useCurrentLocale as k, ChangeIndicatorsTracker as kt, ProjectDatasetData as l, FormInputRelativePathArg as lt, PresenceOverlayProps as m, getItemKey as mt, EMPTY_OBJECT as n, setIfMissing as nt, CopyPasteProvider as o, useDocumentDivergences as ot, PresenceOverlay as p, findIndex as pt, getExpandOperations as q, WorkspaceProvider as r, unset as rt, useCopyPaste as s, FormInput as st, EMPTY_ARRAY as t, set as tt, ProjectGrants as u, FormFieldHeaderText as ut, FieldPresenceProps as v, normalizeIndexSegment as vt, defaultLocale as w, stringToPath as wt, Translate as x, normalizePathSegment as xt, FieldPresenceWithOverlay as y, normalizeIndexTupleSegment as yt, StudioReferenceInput as z };
//# sourceMappingURL=empty-DsnyO2Bz.d.ts.map