import { CSSProperties, ClipboardEventHandler, ComponentProps, ComponentType, ErrorInfo, FocusEvent, FocusEventHandler, FormEventHandler, ReactNode, RefObject } from "react";
import { Observable, Subject } from "rxjs";
import { DRAFTS_FOLDER, DraftId, PublishedId, VERSION_FOLDER, getDraftId, getPublishedId as getPublishedId$1, getVersionFromId as getVersionFromId$1, getVersionId, isDraftId, isPublishedId as isPublishedId$1, isVersionId } from "@sanity/client/csm";
import { ArraySchemaType, AssetMetadataType, AssetSource, AssetSourceSpec, BaseSchemaType, BlockDecoratorDefinition, BlockListDefinition, BlockStyleDefinition, BooleanSchemaType, ConditionalProperty, CrossDatasetReferenceValue, CrossDatasetType, CurrentUser, DocumentSystem, FileValue, FormNodeValidation, GeopointValue, GlobalDocumentReferenceType, I18nTextRecord, ImageUrlFitMode, ImageValue, InitialValueProperty, IntrinsicTypeName, KeyedObject, KeyedSegment, MendozaEffectPair, NumberSchemaType, ObjectField, ObjectFieldType, ObjectSchemaType, PatchOperations, Path, PathSegment, PortableTextBlock, PortableTextObject, PortableTextTextBlock, PrepareViewOptions, PreviewValue, Reference, ReferenceValue, SanityDocument, SanityDocumentLike, Schema, SchemaType, SchemaTypeDefinition, SearchStrategy, SlugValue, StringSchemaType, TransactionLogEventWithEffects, TransactionLogEventWithMutations, User, ValidationMarker } from "@sanity/types";
import { ClientConfig, ClientPerspective, QueryParams, ReconnectEvent, ReleaseDocument, ResetEvent, SanityClient, SingleMutationResult, StackablePerspective, WelcomeBackEvent, WelcomeEvent } from "@sanity/client";
import { Mutation } from "@sanity/mutator";
import { ValidateDocumentWorkspaceOptions } from "@sanity/validation";
import { ArrayDiff, BooleanDiff, Diff, ItemDiff, NullDiff, NumberDiff, ObjectDiff, StringDiff, StringSegmentChanged, StringSegmentUnchanged, TypeChangeDiff } from "@sanity/diff";
import { ButtonTone, DialogProps } from "@sanity/ui";
import { EditorSelection, HotkeyOptions, InvalidValueResolution, OnCopyFn, OnPasteResultOrPromise, PasteData, Patch, PortableTextEditor, RangeDecoration } from "@portabletext/editor";
import { PortableTextMemberSchemaTypes } from "@portabletext/sanity-bridge";
import { MenuItem } from "@sanity/ui/menu";
import { RootTheme, ThemeColorSchemeKey as ThemeColorSchemeKey$1 } from "@sanity/ui/theme";
import { SanityImageSource } from "@sanity/asset-utils";
import { BifurClient } from "@sanity/bifur-client";
import { Router, RouterState } from "sanity/router";
import { TFunction as TFunction$1, i18n } from "i18next";
import { MarkdownShortcutsPluginProps } from "@portabletext/plugin-markdown-shortcuts";
import { PasteLinkPluginProps } from "@portabletext/plugin-paste-link";
import { TypographyPluginProps } from "@portabletext/plugin-typography";
import { TableContainers } from "@portabletext/plugin-table";
/**
 * Handles failures of requests made by a store. A store hands a request
 * over to this handler when a failure would leave it with no way to
 * recover locally — instead of letting the failure error its streams.
 *
 * @internal
 */
interface StoreRequestErrorHandler {
  /**
   * Runs `thunk` and takes responsibility for its failures. An
   * implementation may recover by re-invoking the thunk — the returned
   * promise resolves with the first successful attempt. Failures the
   * handler cannot take responsibility for reject the returned promise.
   *
   * The thunk may return a promise or a finite, single-shot observable
   * (e.g. a request observable), which is drained to its last emitted
   * value.
   *
   * `retryable: true` is the store's assertion that the request is
   * idempotent and safe to re-run.
   */
  attempt<T>(thunk: () => Promise<T> | Observable<T>, options?: {
    retryable?: boolean;
  }): Promise<T>;
}
/** @internal */
type CommitFunction = (mutation: Mutation['params']) => Promise<unknown>;
/**
 * @hidden
 * @beta */
interface DocumentRebaseEvent {
  type: 'rebase';
  document: SanityDocument;
  remoteMutations: MutationPayload[];
  localMutations: MutationPayload[];
}
/**
 * @hidden
 * @beta */
interface DocumentMutationEvent {
  type: 'mutation';
  document: SanityDocument;
  mutations: MutationPayload[];
  origin: 'local' | 'remote';
}
/**
 * @hidden
 * @beta */
interface SnapshotEvent {
  type: 'snapshot';
  document: SanityDocument;
}
/**
 * @hidden
 * @beta */
interface CommittedEvent {
  type: 'committed';
}
/**
 * @hidden
 * @beta */
interface DocumentRemoteMutationEvent {
  type: 'remoteMutation';
  head: SanityDocument;
  transactionId: string;
  author: string;
  timestamp: Date;
  effects: {
    apply: unknown;
    revert: unknown;
  };
}
/**
 * @hidden
 * @beta */
type RemoteSnapshotEvent = DocumentRemoteMutationEvent | SnapshotEvent;
/**
 * @hidden
 * @beta */
interface MutationPayload {
  create?: any;
  createIfNotExists?: any;
  createOrReplace?: any;
  delete?: any;
  patch?: any;
}
/** @internal */
interface MutationEvent {
  type: 'mutation';
  documentId: string;
  transactionId: string;
  mutations: MutationPayload[];
  effects: {
    apply: unknown;
    revert: unknown;
  };
  previousRev: string;
  resultRev: string;
  transactionTotalEvents: number;
  transactionCurrentEvent: number;
  messageReceivedAt: string;
  visibility: 'transaction' | 'query';
  transition: 'update' | 'appear' | 'disappear';
}
/** @internal */
interface PendingMutationsEvent {
  type: 'pending';
  phase: 'begin' | 'end';
}
/** @internal */
interface IdPair {
  draftId: string;
  publishedId: string;
  versionId?: string;
}
/**
 * The document targeted by the selected perspective and variant, as declared by a caller of the
 * document pair APIs. Callers resolve targets asynchronously (variant scope ids are opaque,
 * server-generated hashes discoverable only by lookup), so the union carries the unresolved and
 * missing states explicitly — the store must guard operations in those states instead of falling
 * back to the base draft/published pair.
 *
 * `scopeId` is the second segment of a version document id (`versions.<scopeId>.<groupId>`),
 * matching `_system.scopeId` on the document itself: a release name (or agent/anonymous bundle
 * name) for plain versions today, an opaque server-generated hash for variant-scoped versions.
 *
 * - `version` — a plain version (release, agent or anonymous bundle): the pair checks out
 *   `versions.<scopeId>.<groupId>`. Passing a bare `string` is shorthand for this kind.
 * - `variant` — a resolved variant-scoped version: the pair checks out
 *   `versions.<scopeId>.<groupId>` via the variant's scope id. `allowCreate` declares that the
 *   variant document may not exist yet at a server-advertised id (`_system.draft` on the
 *   variant-of-published sibling) and that typing is allowed to create it — the store keeps
 *   `patch`/`commit` enabled where it would otherwise disable them with `TARGET_NOT_FOUND`.
 * - `target-missing` — a variant is selected but the document has no variant-scoped version for
 *   the current bundle (or the variant selection is invalid). Operations are disabled with
 *   `TARGET_NOT_FOUND` and throw if executed.
 * - `unresolved` — target resolution is still in flight. Operations stay guarded (`NOT_READY`)
 *   and throw if executed.
 *
 * @internal
 */
type DocumentPairTarget = {
  kind: 'version';
  scopeId: string;
} | {
  kind: 'variant';
  scopeId: string;
  variantId: string;
  allowCreate?: boolean;
} | {
  kind: 'target-missing';
  variantId?: string;
} | {
  kind: 'unresolved';
};
interface ListenerSequenceState {
  /**
   * Tracks the latest revision from the server that can be applied locally
   * Once we receive a mutation event that has a `previousRev` that equals `base.revision`
   * we will move `base.revision` to the event's `resultRev`
   * `base.revision` will be undefined if document doesn't exist.
   * `base` is `undefined` until the snapshot event is received
   */
  base: {
    revision: string | undefined;
  } | undefined;
  /**
   * Array of events to pass on to the stream, e.g. when mutation applies to current head revision, or a chain is complete
   */
  emitEvents: ListenerEvent[];
  /**
   * Buffer to keep track of events that doesn't line up in a [previousRev, resultRev] -- [previousRev, resultRev] sequence
   * This can happen if events arrive out of order, or if an event in the middle for some reason gets lost
   */
  buffer: MutationEvent[];
}
declare class OutOfSyncError extends Error {
  /**
   * Attach state to the error for debugging/reporting
   */
  state: ListenerSequenceState;
  constructor(message: string, state: ListenerSequenceState);
}
/** @internal */
interface InitialSnapshotEvent {
  type: 'snapshot';
  documentId: string;
  document: SanityDocument | null;
}
/**
 * @internal
 */
interface LatencyReportEvent {
  shard?: string;
  latencyMs: number;
  transactionId: string;
}
/** @internal */
interface DocumentPairLoadedEvent {
  durationMs: number;
  fromCache: boolean;
  hasPublished: boolean;
  hasDraft: boolean;
  hasVersion: boolean;
}
/** @internal */
interface MutationPerformanceEvent {
  transactionId: string;
  debounceMs: number;
  apiMs: number;
  callbackMs: number;
  shard?: string;
}
/** @internal */
interface DocumentRebaseTelemetryEvent {
  remoteMutationCount: number;
  localMutationCount: number;
}
/** @internal */
interface DocumentStoreExtraOptions {
  tag?: string;
  /**
   * Optional handler for failures of the initial document snapshot fetch —
   * the only request delegated here. Commit failures are routed through the
   * commit request's own failure/cancel channels, and listener drops
   * recover via reconnects. When omitted, fetch failures propagate to the
   * document event streams.
   */
  snapshotFetchErrorHandler?: StoreRequestErrorHandler;
  /**
   * Called when we recover from sync error
   * Meant for error tracking / telemetry purposes
   * @param error - the {@link OutOfSyncError} recovered from
   */
  onSyncErrorRecovery?(error: OutOfSyncError): void;
  onReportLatency?: (event: LatencyReportEvent) => void;
  onSlowCommit?: () => void;
  onDocumentPairLoaded?: (event: DocumentPairLoadedEvent) => void;
  onReportMutationPerformance?: (event: MutationPerformanceEvent) => void;
  onDocumentRebase?: (event: DocumentRebaseTelemetryEvent) => void;
}
/** @internal */
type ListenerEvent = MutationEvent | ReconnectEvent | InitialSnapshotEvent | PendingMutationsEvent | WelcomeEvent | WelcomeBackEvent | ResetEvent;
/** @internal */
declare function getPairListener(_client: SanityClient, idPair: IdPair, options?: DocumentStoreExtraOptions): Observable<ListenerEvent>;
interface TransactionSyncLockState {
  enabled: boolean;
}
/**
 * @hidden
 * @beta */
interface EditStateFor {
  id: string;
  type: string;
  transactionSyncLock: TransactionSyncLockState | null;
  draft: SanityDocument | null;
  published: SanityDocument | null;
  version: SanityDocument | null;
  /**
   * Whether live edit is enabled. This may be true for various reasons:
   *
   * - The schema type has live edit enabled.
   * - A version of the document is checked out.
   */
  liveEdit: boolean;
  /**
   * Whether the schema type has live edit enabled.
   */
  liveEditSchemaType: boolean;
  ready: boolean;
  /**
   * When editing a version, the short name of the release the document belongs to (or an agent /
   * anonymous bundle name), matched by consumers against active release names. Never an opaque
   * variant scope hash: documents carrying full `_system` metadata are classified from
   * `_system.release` (normalized from the `_.releases.<name>` reference), so drafts- and
   * published-scoped variants report `undefined` while release-scoped versions — variant or not —
   * report their release. Until the first snapshot arrives, the bundle segment is reported as-is.
   */
  release: string | undefined;
  /**
   * When editing a version, the bundle segment of the version document id
   * (`versions.<scopeId>.<groupId>`): a release id, an agent/anonymous bundle name, or an opaque
   * variant scope hash. `undefined` when editing the base draft/published pair.
   */
  scopeId: string | undefined;
}
/** @internal */
declare const editState: (ctx: {
  client: SanityClient;
  schema: Schema;
  /**
   * @deprecated Does nothing. Preserved to avoid breaking changes.
   * Will be removed in the next major version.
   */
  serverActionsEnabled?: Observable<boolean>;
  extraOptions?: DocumentStoreExtraOptions;
}, idPair: IdPair, typeName: string) => Observable<EditStateFor>;
/**
 * The routing information of a variant-scoped version document, derived from its `_system`.
 *
 */
interface VariantVersionInfo {
  /** The short variant name (the `_.variants.` prefix stripped from `_system.variants[0]._ref`). */
  variantId: string;
  /**
   * The bundle the variant document belongs to: `'drafts'`, a release id, or `'published'` for
   * the variant-of-published document (which carries no `_system.bundleId`).
   */
  bundleId: 'drafts' | 'published' | (string & {});
}
/**
 * Indicates the type of document variant, either `draft`, `version` or `published`.
 * Draft documents are prefixed with `drafts.`.
 * Version documents are prefixed with `versions.<versionName>`
 * The rest are considered published documents.
 * @public
 */
type DocumentVariantType = 'draft' | 'version' | 'published';
/**
 * Takes a document id and returns the variant type for that document
 * If it's a document that starts with `version.` it's a `version` document.
 * If it's a document that starts with `drafts.` it's a `draft` document.
 * Otherwise, it's a `published` document.
 * @public
 * */
declare function getDocumentVariantType(documentId: string): DocumentVariantType;
/**
 * Events relevant for the whole document group.
 * @hidden
 * @beta
 */
type DocumentGroupEvent = CreateDocumentVersionEvent | DeleteDocumentVersionEvent | PublishDocumentVersionEvent | UnpublishDocumentEvent | ScheduleDocumentVersionEvent | UnscheduleDocumentVersionEvent | DeleteDocumentGroupEvent | CreateLiveDocumentEvent | UpdateLiveDocumentEvent | EditDocumentVersionEvent | HistoryClearedEvent;
/**
 * @hidden
 * @beta
 */
declare const isCreateDocumentVersionEvent: (event: Partial<DocumentGroupEvent>) => event is CreateDocumentVersionEvent;
/**
 * @hidden
 * @beta
 */
declare const isDeleteDocumentVersionEvent: (event: Partial<DocumentGroupEvent>) => event is DeleteDocumentVersionEvent;
/**
 * @hidden
 * @beta
 */
declare const isPublishDocumentVersionEvent: (event: Partial<DocumentGroupEvent>) => event is PublishDocumentVersionEvent;
/**
 * @hidden
 * @beta
 */
declare const isUnpublishDocumentEvent: (event: Partial<DocumentGroupEvent>) => event is UnpublishDocumentEvent;
/**
 * @hidden
 * @beta
 */
declare const isScheduleDocumentVersionEvent: (event: Partial<DocumentGroupEvent>) => event is ScheduleDocumentVersionEvent;
/**
 * @hidden
 * @beta
 */
declare const isUnscheduleDocumentVersionEvent: (event: Partial<DocumentGroupEvent>) => event is UnscheduleDocumentVersionEvent;
/**
 * @hidden
 * @beta
 */
declare const isDeleteDocumentGroupEvent: (event: Partial<DocumentGroupEvent>) => event is DeleteDocumentGroupEvent;
/**
 * @hidden
 * @beta
 */
declare const isCreateLiveDocumentEvent: (event: Partial<DocumentGroupEvent>) => event is CreateLiveDocumentEvent;
/**
 * @hidden
 * @beta
 */
declare const isUpdateLiveDocumentEvent: (event: Partial<DocumentGroupEvent>) => event is UpdateLiveDocumentEvent;
/**
 * @hidden
 * @beta
 */
declare const isEditDocumentVersionEvent: (event: Partial<DocumentGroupEvent>) => event is EditDocumentVersionEvent;
/**
 * A generic event with a type and a timestamp.
 * @hidden
 * @beta
 */
interface BaseEvent {
  id: string;
  timestamp: string;
  author: string;
  /**
   * This is added client side to enhance the UI.
   */
  documentVariantType: DocumentVariantType;
}
/**
 * @hidden
 * @beta
 */
interface CreateDocumentVersionEvent extends BaseEvent {
  type: 'createDocumentVersion';
  documentId: string;
  releaseId?: string;
  versionId: string;
  versionRevisionId: string;
  /**
   * This is undefined for versions and drafts. (will be present only in publish document?)
   */
  revisionId?: string;
  /**
   * This is present when this creation event is already published.
   */
  parentId?: string;
}
/**
 * @hidden
 * @beta
 */
interface HistoryClearedEvent extends BaseEvent {
  type: 'historyCleared';
  documentId: string;
}
/**
 * @hidden
 * @beta
 */
interface DeleteDocumentVersionEvent extends BaseEvent {
  type: 'deleteDocumentVersion';
  documentId: string;
  releaseId?: string;
  versionId: string;
  versionRevisionId: string;
  /**
   * This is added client side to enhance the UI.
   * For draft documents, it indicates the event that created this document that was later published
   * It will be used to expand the publish view.
   */
  creationEvent?: CreateDocumentVersionEvent;
}
/**
 * @hidden
 * @beta
 */
interface PublishDocumentVersionEvent extends BaseEvent {
  type: 'publishDocumentVersion';
  documentId: string;
  revisionId: string;
  versionId: string;
  releaseId?: string;
  /** This is only available when it was triggered by Publish action. */
  versionRevisionId?: string;
  publishCause: 'document.publish' | 'release.publish' | 'release.schedule';
  contributors?: string[];
  /**
   * @deprecated No longer populated by the events store — resolve the release from the
   * releases store (`useAllReleases`) using `event.releaseId` instead. Will be removed in the
   * next major.
   */
  release?: ReleaseDocument | {
    _id: string;
    metadata?: undefined;
  };
  /**
   * This is added client side to enhance the UI.
   * For draft documents, it indicates the event that created this document that was later published
   * It will be used to expand the publish view.
   */
  creationEvent?: CreateDocumentVersionEvent;
}
/**
 * @hidden
 * @beta
 */
interface UnpublishDocumentEvent extends BaseEvent {
  type: 'unpublishDocument';
  documentId: string;
  /** The version that was created based on it */
  versionId: string;
  versionRevisionId: string;
  releaseId?: string;
  author: string;
}
/**
 * @hidden
 * @beta
 */
interface ScheduleDocumentVersionEvent extends BaseEvent {
  type: 'scheduleDocumentVersion';
  documentId: string;
  releaseId: string;
  versionId: string;
  versionRevisionId: string;
  /** The _current_ state of this schedule. */
  state: 'pending' | 'unscheduled' | 'published';
  author: string;
  publishAt: string;
}
/**
 * @hidden
 * @beta
 */
interface UnscheduleDocumentVersionEvent extends BaseEvent {
  type: 'unscheduleDocumentVersion';
  documentId: string;
  releaseId: string;
  versionId: string;
  versionRevisionId: string;
  author: string;
}
/**
 * @hidden
 * @beta
 */
interface DeleteDocumentGroupEvent extends BaseEvent {
  type: 'deleteDocumentGroup';
  documentId: string;
  author: string;
}
/**
 * @hidden
 * @beta
 */
interface CreateLiveDocumentEvent extends BaseEvent {
  type: 'createLiveDocument';
  documentId: string;
  revisionId: string;
  author: string;
}
/**
 * @hidden
 * @beta
 */
interface UpdateLiveDocumentEvent extends BaseEvent {
  type: 'updateLiveDocument';
  documentId: string;
  revisionId: string;
  author: string;
}
/**
 * @hidden
 * @beta
 * This event won't be exposed by the API, it needs to be generated by validating the
 * transactions that occurred between two events. Usually, between two PublishDocumentEvents.
 * Or a create event and a publish event.
 */
interface EditDocumentVersionEvent extends BaseEvent {
  type: 'editDocumentVersion';
  documentId: string;
  contributors: string[];
  /**
   * @deprecated No longer populated by the events store. Resolve membership from the version document's
   * `_system.release` instead. Will be removed in the next major.
   */
  releaseId?: string;
  /**
   * One edit event could contain multiple transactions that are merged together.
   * This represents the newest transaction in the merged events.
   */
  revisionId: string;
  transactions: {
    type: 'editTransaction';
    author: string;
    timestamp: string;
    revisionId: string;
  }[];
  /**
   * Present when an edit was already published, then the user decided to expand the event.
   */
  parentId?: string;
}
/**
 * @hidden
 * @beta
 */
interface EventsStoreRevision {
  revisionId: string;
  loading: boolean;
  document?: SanityDocument | null;
}
/**
 * @internal
 * */
interface EventsStore {
  events: DocumentGroupEvent[];
  nextCursor: string | null;
  loading: boolean;
  error: Error | null;
  revision: EventsStoreRevision | null;
  sinceRevision: EventsStoreRevision | null;
  findRangeForRevision: (nextRev: string) => [string | null, string | null];
  findRangeForSince: (nextSince: string) => [string | null, string | null];
  loadMoreEvents: () => void;
  getChangesList: () => Observable<{
    diff: ObjectDiff$1 | null;
    loading: boolean;
    error: Error | null;
  }>;
  expandEvent: (event: DocumentGroupEvent) => Promise<void>;
  lastNonDeletedRevId: string | null;
  getDocumentAtRevision: (revision: string) => Observable<EventsStoreRevision | null>;
}
/**
 * @internal
 **/
type DocumentVersionEventType = DocumentGroupEvent['type'];
/**
 * An object of locale resources, or a string array of resources
 *
 * @public
 */
type LocaleNestedResource = LocaleResourceRecord | string[];
/**
 * A locale resource key, which can be a leaf string, or a nested resource
 *
 * @public
 */
type LocaleResourceKey = string | LocaleNestedResource;
/**
 * An object of locale resources.
 *
 * @public
 */
interface LocaleResourceRecord {
  [key: string]: LocaleResourceKey;
}
/**
 * Context passed to locale config resolvers
 *
 * @public
 */
interface LocaleConfigContext {
  projectId: string;
  dataset: string;
}
/**
 * Either an array of locale definitions, or a resolver that returns one.
 *
 * @public
 */
type LocalesOption = ((prev: LocaleDefinition[], context: LocaleConfigContext) => LocaleDefinition[]) | LocaleDefinition[];
/**
 * Either an array of locale resource bundles, or a resolver that returns one.
 *
 * @public
 */
type LocalesBundlesOption = ((prev: LocaleResourceBundle[], context: LocaleConfigContext) => LocaleResourceBundle[]) | LocaleResourceBundle[];
/**
 * Options that defines or adds resources to existing locales
 *
 * @public
 */
interface LocalePluginOptions {
  /**
   * Locales available for user selection.
   *
   * Titles and icons can be changed by using a function (reducer pattern) and transforming values.
   */
  locales?: LocalesOption;
  /**
   * Bundles contain "resources" (strings) that yields translations for different locales
   * throughout the studio. The strings are scoped to a specific locale and namespace.
   * Namespaces in this context usually means a specific part of the studio, like a tool or plugin.
   */
  bundles?: LocalesBundlesOption;
}
/**
 * A locale resource bundle where the locale is inherited from the parent locale definition.
 *
 * @public
 */
type ImplicitLocaleResourceBundle = Omit<LocaleResourceBundle, 'locale'>;
/**
 * A collection of locale resources for a given locale and namespace.
 * In other words, an object of translated locale strings.
 *
 * @public
 */
interface LocaleResourceBundle {
  /**
   * The locale ID the resources belong to, eg `en-US`, `nb-NO`, `th-TH`…
   */
  locale: string;
  /**
   * The namespace the resources belong to, eg `vision`, `structure`, `studio`…
   */
  namespace: string;
  /**
   * An object of locale resources, or a function that resolves to one.
   * The localization framework automatically handles ESM modules with a default export,
   * since a common use case is to dynamically load a resource file on use. This is the
   * preferred option, since it allows for lazy loading of locale resources on use.
   */
  resources: LocaleResourceRecord | (() => Promise<LocaleResourceRecord | {
    default: LocaleResourceRecord;
  }>);
  /**
   * Whether the resources should be merged deeply (eg for nested objects). Default: true
   */
  deep?: boolean;
  /**
   * Whether any existing resource keys for the namespace be overwritten. Default: true
   */
  overwrite?: boolean;
}
/**
 * A locale resource bundle where the resources are static, eg not lazy loaded.
 *
 * @public
 */
type StaticLocaleResourceBundle = Omit<ImplicitLocaleResourceBundle, 'resources'> & {
  /**
   * The locale ID the resources belong to, eg `en-US`, `nb-NO`, `th-TH`…
   */
  locale?: string;
  /**
   * An object of locale resources.
   */
  resources: LocaleResourceRecord;
};
/**
 * A locale representation
 *
 * @public
 */
interface Locale {
  /**
   * The ID of the locale, eg `en-US`, `nb-NO`, `th-TH`…
   */
  id: string;
  /**
   * The title of locale, eg `English (US)`, `Norsk (bokmål)`, `ไทย`…
   */
  title: string;
  /**
   * Week information for this locale. Based on the `Intl.Locale['weekInfo']` type.
   */
  weekInfo: LocaleWeekInfo;
}
/**
 * An object representing week information associated with the Locale data specified in
 * {@link https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Patterns_Week_Elements | UTS 35's Week Elements }
 *
 * @public
 */
interface LocaleWeekInfo {
  /**
   * An integer indicating the first day of the week for the locale.
   * Can be either 1 (Monday), 6 (Saturday) or 7 (Sunday).
   */
  firstDay: 1 | 6 | 7;
  /**
   * An array of integers indicating the weekend days for the locale, where 1 is Monday and 7 is Sunday.
   */
  weekend: (1 | 2 | 3 | 4 | 5 | 6 | 7)[];
  /**
   * An integer between 1 and 7 indicating the minimal days required in the first week of a month or year, for calendar purposes.
   * @deprecated Kept for backwards compatibility in typings, but not used anywhere.
   */
  minimalDays?: 1 | 2 | 3 | 4 | 5 | 6 | 7;
}
/**
 * A locale definition, which describes a locale and its resources.
 *
 * @public
 */
interface LocaleDefinition extends Locale {
  /**
   * Array of resource bundles for this locale, if any.
   *
   * Generally you'll want to provide some base resources, eg for the studio core namespace,
   * as well as for common namespaces like `structure` and `vision`. You can also provide resources
   * for other plugins/namespaces - but preferably the resources should be provided as an async
   * function that imports the resources, in order to lazy load them on use.
   */
  bundles?: (ImplicitLocaleResourceBundle | LocaleResourceBundle)[];
}
/**
 * Internal representation of the available locale configuration.
 *
 * Generally not something you will want to use directly.
 *
 * @public
 */
interface LocaleSource {
  /**
   * Current locale ID (eg `en-US`, `nb-NO`, `th-TH`…)
   */
  currentLocale: Locale;
  /**
   * Array of locale definitions
   */
  locales: Locale[];
  /**
   * Loads the given namespaces, if not already done.
   *
   * @param namespaces - Array of namespace names to load
   * @returns Promise which resolves once loaded.
   */
  loadNamespaces(namespaces: string[]): Promise<void>;
  /**
   * Translation function, eg `t('some.key') => 'Some string'`
   */
  t: TFunction$1;
}
/**
 * The string resources for the studio core.
 *
 * @internal
 * @hidden
 */
declare const studioLocaleStrings: {
  /** "Configuration issue" header */
  'about-dialog.configuration-issue.header': string;
  /** Message shown if sanity.cli.ts is missing deployment.appId */
  'about-dialog.configuration-issue.missing-appid': string;
  /** "View documentation" link for auto-updating studios */
  'about-dialog.configuration-issue.missing-appid.view-documentation': string;
  /** "Disabled" status for auto-updates in About-dialog */
  'about-dialog.version-info.auto-updates.disabled': string;
  /** "Enabled" status for auto-updates in About-dialog */
  'about-dialog.version-info.auto-updates.enabled': string;
  /** @deprecated "Auto Updates" status header in About-dialog */
  'about-dialog.version-info.auto-updates.header': string;
  /** "How to enable" next to Disabled state for Auto updates in version info dialog */
  'about-dialog.version-info.auto-updates.how-to-enable': string;
  /** "Manage version" link text */
  'about-dialog.version-info.auto-updates.manage-version': string;
  /** Text displayed on the "Copy to clipboard"-button after clicked */
  'about-dialog.version-info.copy-to-clipboard-button.copied-text': string;
  /** "Copy to Clipboard" button text for copying version details from About-dialog */
  'about-dialog.version-info.copy-to-clipboard-button.text': string;
  /** "Current version" header in version info dialog  */
  'about-dialog.version-info.current-version.header': string;
  /** Deprecation warning in About-dialog: the running (or pinned) version is deprecated */
  'about-dialog.version-info.deprecated.current': string;
  /** Deprecation warning in About-dialog: header */
  'about-dialog.version-info.deprecated.header': string;
  /** Deprecation warning in About-dialog: what to do when the studio is auto-updating but pinned to the deprecated version */
  'about-dialog.version-info.deprecated.next-step.pinned': string;
  /** Deprecation warning in About-dialog: what to do when the studio is not auto-updating */
  'about-dialog.version-info.deprecated.next-step.upgrade': string;
  /** Deprecation warning in About-dialog: link to the upgrade guide for studios that are not auto-updating */
  'about-dialog.version-info.deprecated.next-step.upgrade.learn-how': string;
  /** Deprecation warning in About-dialog: the reason given when the version was deprecated */
  'about-dialog.version-info.deprecated.reason': string;
  /** @deprecated "How to upgrade" link text */
  'about-dialog.version-info.how-to-upgrade': string;
  /** "Latest version" header in version info dialog */
  'about-dialog.version-info.latest-version.header': string;
  /** Info text when auto updates is enabled and a new version is available */
  'about-dialog.version-info.new-auto-update-version-available': string;
  /** "New version" header in version info dialog - Note that this is not necessary a *higher* version compared to current:
   *  It's a new version configured for auto updates which in some cases could even be a version below current  */
  'about-dialog.version-info.new-version.text': string;
  /** "Reload"-button when auto updates is enabled and a new version is available */
  'about-dialog.version-info.reload': string;
  /** "Reload to update"-tooltip when auto updates is enabled and a new version is available */
  'about-dialog.version-info.reload-to-update': string;
  /** "Deprecated" tooltip in About-dialog */
  'about-dialog.version-info.tooltip.deprecated': string;
  /** "Development" tooltip in About-dialog */
  'about-dialog.version-info.tooltip.development': string;
  /** "New version available" tooltip in About-dialog */
  'about-dialog.version-info.tooltip.new-version-available': string;
  /** "Prerelease" tooltip in About-dialog */
  'about-dialog.version-info.tooltip.prerelease': string;
  /** "Up to date" tooltip in About-dialog */
  'about-dialog.version-info.tooltip.up-to-date': string;
  /** @deprecated "Up to date" status in About-dialog */
  'about-dialog.version-info.up-to-date': string;
  /** "Upgrade"-button text */
  'about-dialog.version-info.update-button.text': string;
  /** "Upgrade"-button tooltip text */
  'about-dialog.version-info.update-button.tooltip': string;
  /** "User agent" header in About-dialog */
  'about-dialog.version-info.user-agent.header': string;
  /** "View on GitHub" link from version info dialog */
  'about-dialog.version-info.view-on-github': string;
  /** The text used in the tooltip shown in the dialog close button */
  'announcement.dialog.close': string;
  /** Aria label to be used in the dialog close button */
  'announcement.dialog.close-label': string;
  /**Text to be used in the tooltip in the button in the studio announcement card */
  'announcement.floating-button.dismiss': string;
  /**Aria label to be used in the floating button in the studio announcement card, to dismiss the card */
  'announcement.floating-button.dismiss-label': string;
  /**Aria label to be used in the floating button in the studio announcement card */
  'announcement.floating-button.open-label': string;
  /** Menu item for deleting the asset */
  'asset-source.asset-list.menu.delete': string;
  /** Menu item for showing where a particular asset is used */
  'asset-source.asset-list.menu.show-usage': string;
  /** Header in usage dialog for file assets */
  'asset-source.asset-usage-dialog.header_file': string;
  /** Header in usage dialog for image assets */
  'asset-source.asset-usage-dialog.header_image': string;
  /** Text shown in usage dialog when loading documents using the selected asset */
  'asset-source.asset-usage-dialog.loading': string;
  /** Browse button text */
  'asset-source.browse-button.text': string;
  /** Text for cancel action in delete-asset dialog */
  'asset-source.delete-dialog.action.cancel': string;
  /** Text for "confirm delete" action in delete-asset dialog */
  'asset-source.delete-dialog.action.delete': string;
  /** Dialog header for delete-asset dialog when deleting a file */
  'asset-source.delete-dialog.header_file': string;
  /** Dialog header for delete-asset dialog when deleting an image */
  'asset-source.delete-dialog.header_image': string;
  /** Text shown in delete dialog when loading documents using the selected asset */
  'asset-source.delete-dialog.loading': string;
  /** Message confirming to delete *named* file */
  'asset-source.delete-dialog.usage-list.confirm-delete-file_named': string;
  /** Message confirming to delete *unnamed* file */
  'asset-source.delete-dialog.usage-list.confirm-delete-file_unnamed': string;
  /** Message confirming to delete *named* image */
  'asset-source.delete-dialog.usage-list.confirm-delete-image_named': string;
  /** Message confirming to delete *unnamed* image */
  'asset-source.delete-dialog.usage-list.confirm-delete-image_unnamed': string;
  /** Alt text showing on image preview in delete asset dialog  */
  'asset-source.delete-dialog.usage-list.image-preview-alt': string;
  /** Warning message showing when *named* file can't be deleted because it is in use */
  'asset-source.delete-dialog.usage-list.warning-file-is-in-use_named': string;
  /** Warning message showing when *unnamed* file can't be deleted because it is in use */
  'asset-source.delete-dialog.usage-list.warning-file-is-in-use_unnamed': string;
  /** Warning message showing when *named* image can't be deleted because it is in use */
  'asset-source.delete-dialog.usage-list.warning-image-is-in-use_named': string;
  /** Warning message showing when *unnamed* image can't be deleted because it is in use */
  'asset-source.delete-dialog.usage-list.warning-image-is-in-use_unnamed': string;
  /** Text shown when the list of assets only include a specific set of types */
  'asset-source.dialog.accept-message': string;
  /** Select asset dialog cancel-button */
  'asset-source.dialog.button.cancel': string;
  /** Select asset dialog select-button */
  'asset-source.dialog.button.select': string;
  /** Keys shared between both image asset source and file asset source */
  /** Insert asset error */
  'asset-source.dialog.insert-asset-error': string;
  /** Toast title shown when the list of assets failed to load */
  'asset-source.dialog.load-error': string;
  /** Select asset dialog load more items */
  'asset-source.dialog.load-more': string;
  /** Text shown when selecting a file but there's no files to select from
   * @deprecated no longer in use
   */
  'asset-source.dialog.no-assets_file': string;
  /** Text shown when selecting an image but there's no images to select from
   * @deprecated no longer in use
   */
  'asset-source.dialog.no-assets_image': string;
  'asset-source.file.asset-list.action.delete.disabled-cannot-delete-current-file': string;
  'asset-source.file.asset-list.action.delete.text': string;
  'asset-source.file.asset-list.action.delete.title': string;
  'asset-source.file.asset-list.action.select-file.title': string;
  'asset-source.file.asset-list.action.show-usage.title': string;
  'asset-source.file.asset-list.delete-failed': string;
  'asset-source.file.asset-list.delete-successful': string;
  'asset-source.file.asset-list.header.date-added': string;
  /** File asset source */
  'asset-source.file.asset-list.header.filename': string;
  'asset-source.file.asset-list.header.size': string;
  'asset-source.file.asset-list.header.type': string;
  /** Text displayed on button or menu invoking the file asset source */
  'asset-source.file.title': string;
  'asset-source.image.asset-list.delete-failed': string;
  /** Image asset source */
  'asset-source.image.asset-list.delete-successful': string;
  /** Text displayed on button or menu invoking the image asset source */
  'asset-source.image.title': string;
  /** Built in asset source usage texts */
  'asset-source.usage-list.documents-using-file_named_one': string;
  'asset-source.usage-list.documents-using-file_named_other': string;
  /** Text shown in usage dialog for a file asset when there are zero, one or more documents using the *named* file **/
  'asset-source.usage-list.documents-using-file_named_zero': string;
  'asset-source.usage-list.documents-using-file_unnamed_one': string;
  'asset-source.usage-list.documents-using-file_unnamed_other': string;
  /** Text shown in usage dialog for a file asset when there are zero, one or more documents using the *unnamed* file **/
  'asset-source.usage-list.documents-using-file_unnamed_zero': string;
  'asset-source.usage-list.documents-using-image_named_one': string;
  'asset-source.usage-list.documents-using-image_named_other': string;
  /** Text shown in usage dialog for an image asset when there are zero, one or more documents using the *named* image **/
  'asset-source.usage-list.documents-using-image_named_zero': string;
  'asset-source.usage-list.documents-using-image_unnamed_one': string;
  'asset-source.usage-list.documents-using-image_unnamed_other': string;
  /** Text shown in usage dialog for an image asset when there are zero, one or more documents using the *unnamed* image **/
  'asset-source.usage-list.documents-using-image_unnamed_zero': string;
  /** Common (all) Asset Source texts. Note that all translation keys starting with 'asset-source.' is for the built in asset source. */
  'asset-sources.common.uploader.upload-failed.description': string;
  'asset-sources.common.uploader.upload-failed.title': string;
  /** Menu Items for Dataset Asset Source (will be replaced with workspace name by default) */
  'asset-sources.dataset.file.title': string;
  'asset-sources.dataset.image.title': string;
  /** Error messages for the Media Library Asset Source  */
  'asset-sources.media-library.error.library-could-not-be-resolved': string;
  /** Error message shown when no media library has been provisioned for the current organization */
  'asset-sources.media-library.error.no-media-library-provisioned': string;
  /** Menu Items for Media Library Asset Source */
  'asset-sources.media-library.file.title': string;
  'asset-sources.media-library.image.title': string;
  /** Done button text */
  'asset-sources.media-library.open-in-source-dialog.button.done': string;
  /** Select new asset button text with target title */
  'asset-sources.media-library.open-in-source-dialog.button.select-new-asset': string;
  'asset-sources.media-library.open-in-source-dialog.button.select-new-asset-fallback': string;
  /** Title for the open in source dialog */
  'asset-sources.media-library.open-in-source-dialog.title': string;
  /** Title for the upload dialog (component mode) */
  'asset-sources.media-library.upload-dialog.title': string;
  /** Warning message shown when uploading already existing files to the Media Library Asset Source */
  'asset-sources.media-library.warning.file-already-exist.description': string;
  'asset-sources.media-library.warning.file-already-exist.title': string;
  /** Label when a release has been deleted by a different user */
  'banners.deleted-bundle-banner.text': string;
  /** Action message for navigating to next month */
  'calendar.action.go-to-next-month': string;
  /** Action message for navigating to next year */
  'calendar.action.go-to-next-year': string;
  /** Action message for navigating to previous month */
  'calendar.action.go-to-previous-month': string;
  /** Action message for navigating to previous year */
  'calendar.action.go-to-previous-year': string;
  'calendar.action.go-to-today': string;
  'calendar.action.go-to-today-aria-label': string;
  'calendar.action.go-to-tomorrow': string;
  'calendar.action.go-to-yesterday': string;
  /** Label for switch that controls whether or not to include time in given timestamp */
  'calendar.action.include-time-label': string;
  /** Action message for selecting the time */
  'calendar.action.select-time': string;
  /** Action message for setting to the current time */
  'calendar.action.set-to-current-time': string;
  /** Label for selecting an hour preset. Receives a `time` param as a string on hh:mm format and a `date` param as a Date instance denoting the preset date */
  'calendar.action.set-to-time-preset': string;
  /** Aria label for button to open date picker */
  'calendar.button.aria-label': string;
  /** Tooltip content for button to open datetime input */
  'calendar.button.tooltip-text': string;
  /** Error message displayed in calendar when entered date is not the correct format */
  'calendar.error.must-be-in-format': string;
  /** Month name for April */
  'calendar.month-names.april': string;
  /** Month name for August */
  'calendar.month-names.august': string;
  /** Month name for December */
  'calendar.month-names.december': string;
  /** Month name for February */
  'calendar.month-names.february': string;
  /** Month name for January */
  'calendar.month-names.january': string;
  /** Month name for July */
  'calendar.month-names.july': string;
  /** Month name for June */
  'calendar.month-names.june': string;
  /** Month name for March */
  'calendar.month-names.march': string;
  /** Month name for May */
  'calendar.month-names.may': string;
  /** Month name for November */
  'calendar.month-names.november': string;
  /** Month name for October */
  'calendar.month-names.october': string;
  /** Month name for September */
  'calendar.month-names.september': string;
  /** Short weekday name for Friday */
  'calendar.weekday-names.short.friday': string;
  /** Short weekday name for Monday */
  'calendar.weekday-names.short.monday': string;
  /** Short weekday name for Saturdayday */
  'calendar.weekday-names.short.saturday': string;
  /** Short weekday name for Sunday */
  'calendar.weekday-names.short.sunday': string;
  /** Short weekday name for Thursday */
  'calendar.weekday-names.short.thursday': string;
  /** Short weekday name for Tuesday */
  'calendar.weekday-names.short.tuesday': string;
  /** Short weekday name for Wednesday */
  'calendar.weekday-names.short.wednesday': string;
  /** The name of Content Agent, the product. */
  'content-agent': string;
  /** Label for the close button label in Review Changes pane */
  'changes.action.close-label': string;
  /** Cancel label for revert button prompt action */
  'changes.action.revert-all-cancel': string;
  /** Revert all confirm label for revert button action - used on prompt button + review changes pane */
  'changes.action.revert-all-confirm': string;
  /** Prompt for reverting all changes in document in Review Changes pane. Includes a count of changes. */
  'changes.action.revert-all-description': string;
  /** Prompt for confirming revert change (singular) label for field change action */
  'changes.action.revert-changes-confirm-change_one': string;
  /** Revert for confirming revert (plural) label for field change action */
  'changes.action.revert-changes-confirm-change_other': string;
  /** Prompt for reverting changes for a field change */
  'changes.action.revert-changes-description': string;
  /** Prompt for reverting changes for a group change, eg multiple changes */
  'changes.action.revert-changes-description_one': string;
  /** Label for when the action of the change was to set something that was previously empty, eg a field was given a value, an array item was added, an asset was selected or similar */
  'changes.added-label': string;
  /** Array diff: An item was added in a given position (`{{position}}`) */
  'changes.array.item-added-in-position': string;
  'changes.array.item-moved_down_one': string;
  'changes.array.item-moved_down_other': string;
  /**
   * Array diff: An item was moved within the array.
   * Receives `{{count}}` representing number of positions it moved.
   * Context is the direction of the move, either `up` or `down`.
   */
  'changes.array.item-moved_up_one': string;
  'changes.array.item-moved_up_other': string;
  /** Array diff: An item was removed from a given position (`{{position}}`) */
  'changes.array.item-removed-from-position': string;
  /** Accessibility label for the "change bar" shown when there are edits on a field-level */
  'changes.change-bar.aria-label': string;
  /** Label for when the action of the change was _not_ an add/remove, eg a text field changed value, an image was changed from one asset to another or similar */
  'changes.changed-label': string;
  /** Label and text for tooltip that indicates the authors of the changes */
  'changes.changes-by-author': string;
  /** Additional text shown in development mode when a diff component crashes during rendering */
  'changes.error-boundary.developer-info': string;
  /** Text shown when a diff component crashes during rendering, triggering the error boundary */
  'changes.error-boundary.title': string;
  'changes.error-description': string;
  /** Error title when changes could not be loaded */
  'changes.error-title': string;
  /** Error message shown when the value of a field is not the expected one */
  'changes.error.incorrect-type-message': string;
  /** File diff: Fallback title for the meta info section when there is no original filename to use  */
  'changes.file.meta-info-fallback-title': string;
  /** The label displayed to indicate a document's value is different to its base variant. */
  'changes.from-base-variant.label': string;
  /** Image diff: Text shown in tooltip when hovering hotspot that has changed in diff view */
  'changes.image.crop-changed': string;
  /** Image diff: Text shown if the previous image asset was deleted (shouldn't theoretically happen) */
  'changes.image.deleted': string;
  /** Image diff: Text shown if the image failed to be loaded when previewing it */
  'changes.image.error-loading-image': string;
  /** Image diff: Text shown in tooltip when hovering hotspot that has changed in diff view */
  'changes.image.hotspot-changed': string;
  /** Image diff: Fallback title for the meta info section when there is no original filename to use  */
  'changes.image.meta-info-fallback-title': string;
  /** Image diff: Text shown if no asset has been set for the field (but has metadata changes) */
  'changes.image.no-asset-set': string;
  /** Image diff: Text shown when the from/to state has/had no image */
  'changes.image.no-image-placeholder': string;
  /** Label for the "from" value in the change inspector */
  'changes.inspector.from-label': string;
  /** Label for the "meta" (field path, action etc) information in the change inspector */
  'changes.inspector.meta-label': string;
  /** Label for the "to" value in the change inspector */
  'changes.inspector.to-label': string;
  /** Loading author of change in the differences tooltip in the review changes pane */
  'changes.loading-author': string;
  /** Loading changes in Review Changes Pane */
  'changes.loading-changes': string;
  /** Error message shown when the document revision could not be found */
  'changes.missing-since-document-error': string;
  /** No Changes description in the Review Changes pane */
  'changes.no-changes-description': string;
  /** No Changes title in the Review Changes pane */
  'changes.no-changes-title': string;
  'changes.not-selectable': string;
  /** Portable Text diff: An annotation was added */
  'changes.portable-text.annotation_added': string;
  /** Portable Text diff: An annotation was changed */
  'changes.portable-text.annotation_changed': string;
  /** Portable Text diff: An annotation was removed */
  'changes.portable-text.annotation_removed': string;
  /** Portable Text diff: An annotation was left unchanged */
  'changes.portable-text.annotation_unchanged': string;
  /** Portable Text diff: A block changed from one style to another (eg `normal` to `h1` or similar) */
  'changes.portable-text.block-style-changed': string;
  /** Portable Text diff: Change formatting of text (setting/unsetting marks, eg bold/italic etc) */
  'changes.portable-text.changed-formatting': string;
  /** Portable Text diff: An empty inline object is part of a change */
  'changes.portable-text.empty-inline-object': string;
  /** Portable Text diff: An empty object is the result of adding/removing an annotation */
  'changes.portable-text.empty-object-annotation': string;
  /** Portable Text diff: Added a block containing no text (eg empty block) */
  'changes.portable-text.empty-text_added': string;
  /** Portable Text diff: Changed a block that contained no text (eg empty block) */
  'changes.portable-text.empty-text_changed': string;
  /** Portable Text diff: Removed a block containing no text (eg empty block) */
  'changes.portable-text.empty-text_removed': string;
  /** Portable Text diff: An inline object was added */
  'changes.portable-text.inline-object_added': string;
  /** Portable Text diff: An inline object was changed */
  'changes.portable-text.inline-object_changed': string;
  /** Portable Text diff: An inline object was removed */
  'changes.portable-text.inline-object_removed': string;
  /** Portable Text diff: An inline object was left unchanged */
  'changes.portable-text.inline-object_unchanged': string;
  /** Portable Text diff: Added a chunk of text */
  'changes.portable-text.text_added': string;
  /** Portable Text diff: Removed a chunk of text */
  'changes.portable-text.text_removed': string;
  /** Portable Text diff: Annotation has an unknown schema type */
  'changes.portable-text.unknown-annotation-schema-type': string;
  /** Portable Text diff: Inline object has an unknown schema type */
  'changes.portable-text.unknown-inline-object-schema-type': string;
  /** Label for when the action of the change was a removal, eg a field was cleared, an array item was removed, an asset was deselected or similar */
  'changes.removed-label': string;
  /** Same Revision Selected description in the Review Changes pane */
  'changes.same-revision-selected-description': string;
  /** Same Revision Selected title in the Review Changes pane */
  'changes.same-revision-selected-title': string;
  /** Title for the Review Changes pane */
  'changes.title': string;
  /** Shown above raw JSON diff for document fields that are not defined in the schema */
  'changes.unknown-schema-field.description': string;
  /**The title that will be shown in the badge inside the events when the item is a draft */
  'changes.versions.draft': string;
  /** --- Common components --- */
  /** Tooltip text for context menu buttons */
  'common.context-menu-button.tooltip': string;
  /** Default text for dialog cancel button */
  'common.dialog.cancel-button.text': string;
  /** Default text for dialog confirm button */
  'common.dialog.confirm-button.text': string;
  /** Default text in shared error text */
  'common.error': string;
  /** Default text in shared loader text / spinner lockup */
  'common.loading': string;
  /** The title of the reconnecting toast */
  'common.reconnecting.toast.title': string;
  /** --- Configuration issues --- */
  /** Default label text on configuration issues button */
  'configuration-issues.button.label': string;
  /** Tooltip displayed on configuration issues button */
  'configuration-issues.button.tooltip': string;
  /** The fallback title for an ordering menu item if no localized titles are provided. */
  'default-menu-item.fallback-title': string;
  /** Title for the default ordering/SortOrder if no orderings are provided and the caption field is found */
  'default-orderings.caption': string;
  /** Title for the default ordering/SortOrder if no orderings are provided and the description field is found */
  'default-orderings.description': string;
  /** Title for the default ordering/SortOrder if no orderings are provided and the header field is found */
  'default-orderings.header': string;
  /** Title for the default ordering/SortOrder if no orderings are provided and the heading field is found */
  'default-orderings.heading': string;
  /** Title for the default ordering/SortOrder if no orderings are provided and the label field is found */
  'default-orderings.label': string;
  /** Title for the default ordering/SortOrder if no orderings are provided and the name field is found */
  'default-orderings.name': string;
  /** Title for the default ordering/SortOrder if no orderings are provided and the title field is found */
  'default-orderings.title': string;
  /** Menu item that opens Studio diagnostics */
  'diagnostics.menu-item': string;
  /** Label for action that closes divergence inspector */
  'divergence.action.close.label': string;
  /** Label for action that marks divergence as resolved */
  'divergence.action.markResolved.label': string;
  /** Label for action that moves inspector to the next divergence in the document */
  'divergence.action.next.label': string;
  /** Label for action that moves inspector to the previous divergence in the document */
  'divergence.action.previous.label': string;
  /** Label for action that replaces the node's value in the current version with its latest value in the upstream version */
  'divergence.action.takeFromUpstream.label': string;
  /** Verb to describe the node's value changed */
  'divergence.effect.changed': string;
  /** Summary of the change that occurred */
  'divergence.effect.summary': string;
  /** Description of the position of the current divergence being inspected, compared to the total count of divergences */
  'divergence.pagination': string;
  /** Label for divergence in a single node */
  'divergence.unresolved-divergence_one': string;
  /** Label for divergences in multiple nodes */
  'divergence.unresolved-divergence_other': string;
  /** --- Document inventory --- */
  /** The label shown when dismissing the document group inventory */
  'document-group-inventory.action.cancel': string;
  /** The label for the button that opens the document group inventory */
  'document-group-inventory.action.manage-versions': string;
  /** The label used in the feedback dialog asking how easy the document group inventory is to use */
  'document-group-inventory.feedback.sentiment-label': string;
  /** The label for the input that filters the variants in the document group inventory */
  'document-group-inventory.filter-string.label': string;
  /** The document inventory title (singular) */
  'document-group-inventory.title': string;
  /** The document inventory title (plural) */
  'document-group-inventory.title_one': string;
  /** The document inventory title (plural) */
  'document-group-inventory.title_other': string;
  /** The label text that indicates an item in the document group inventory is currently being viewed */
  'document-group-inventory.viewing-item-label': string;
  /** --- Document group --- */
  /** The label given to a document group's base variant */
  'document-group.base-variant': string;
  /** The header label for the variant creation flow before a variant definition has been selected */
  'document-group.create-variant': string;
  /** The header label for the variant creation flow once a variant definition has been selected */
  'document-group.create-variant.for-target': string;
  /** The heading for the option to create a variant as a draft */
  'document-group.create-variant.target-drafts': string;
  /** The label for the list of releases a variant can be created in */
  'document-group.create-variant.target-releases': string;
  /** The label for the list of existing variants that can be viewed instead of creating a new one */
  'document-group.create-variant.view-existing-variants': string;
  /** The text in the "Cancel" button in the confirm delete dialog that cancels the action */
  'document-group.delete.cancel-button.text': string;
  /** Used in `document-group.delete.cdr-summary.title` */
  'document-group.delete.cdr-summary.document-count_one': string;
  /** Used in `document-group.delete.cdr-summary.title` */
  'document-group.delete.cdr-summary.document-count_other': string;
  /** The text that appears in the subtitle `<summary>` that lists the datasets below the title */
  'document-group.delete.cdr-summary.subtitle_one': string;
  /** The text that appears in the subtitle `<summary>` that lists the datasets below the title */
  'document-group.delete.cdr-summary.subtitle_other': string;
  /** The text that appears in the subtitle `<summary>` that lists the datasets below the title */
  'document-group.delete.cdr-summary.subtitle_unavailable_one': string;
  /** The text that appears in the subtitle `<summary>` that lists the datasets below the title */
  'document-group.delete.cdr-summary.subtitle_unavailable_other': string;
  /** The text that appears in the title `<summary>` that includes the list of CDRs (singular) */
  'document-group.delete.cdr-summary.title_one': string;
  /** The text that appears in the title `<summary>` that includes the list of CDRs (plural) */
  'document-group.delete.cdr-summary.title_other': string;
  /** Appears when hovering over the copy button to copy */
  'document-group.delete.cdr-table.copy-id-button.tooltip': string;
  /** The header for the dataset column in the list of cross-dataset references found */
  'document-group.delete.cdr-table.dataset.label': string;
  /** The header for the document ID column in the list of cross-dataset references found */
  'document-group.delete.cdr-table.document-id.label': string;
  /** The toast title when the copy button has been clicked but copying failed */
  'document-group.delete.cdr-table.id-copied-toast.title-failed': string;
  /** The header for the project ID column in the list of cross-dataset references found */
  'document-group.delete.cdr-table.project-id.label': string;
  /** The text in the "Delete now" button in the confirm delete dialog that confirms the action (singular) */
  'document-group.delete.confirm-button.text_one': string;
  /** The text in the "Delete now" button in the confirm delete dialog that confirms the action (plural) */
  'document-group.delete.confirm-button.text_other': string;
  /** The message shown after deletion fails */
  'document-group.delete.error.message': string;
  /** Shown if there are references to other documents but the user does not have the permission to see the relevant document IDs */
  'document-group.delete.other-reference-count.title_one': string;
  /** Shown if there are references to other documents but the user does not have the permission to see the relevant document IDs */
  'document-group.delete.other-reference-count.title_other': string;
  /** Text in the tooltip of this component if hovering over the info icon */
  'document-group.delete.other-reference-count.tooltip': string;
  /** Appears when unable to render a document preview in the referring document list */
  'document-group.delete.preview-item.preview-unavailable.subtitle': string;
  /** Appears when unable to render a document preview in the referring document list */
  'document-group.delete.preview-item.preview-unavailable.title': string;
  /** Tells the user the count of how many other referring documents there are before listing them. (singular) */
  'document-group.delete.referring-document-count.text_one': string;
  /** Tells the user the count of how many other referring documents there are before listing them. (plural) */
  'document-group.delete.referring-document-count.text_other': string;
  /** Describes the list of documents that refer to the one trying to be deleted (delete) */
  'document-group.delete.referring-documents-descriptor.text': string;
  /** Header of the delete dialog. `count` controls pluralization; `subject` is a translated noun (see `document-group.subject.*`) (singular) */
  'document-group.delete.title_one': string;
  /** Header of the delete dialog. `count` controls pluralization; `subject` is a translated noun (see `document-group.subject.*`) (plural) */
  'document-group.delete.title_other': string;
  /** Translated noun used as the `{{subject}}` value in document group strings such as `document-group.delete.title` (singular) */
  'document-group.subject.variant_one': string;
  /** Translated noun used as the `{{subject}}` value in document group strings such as `document-group.delete.title` (plural) */
  'document-group.subject.variant_other': string;
  /** Translated noun used as the `{{subject}}` value in document group strings such as `document-group.delete.title` (singular) */
  'document-group.subject.version_one': string;
  /** Translated noun used as the `{{subject}}` value in document group strings such as `document-group.delete.title` (plural) */
  'document-group.subject.version_other': string;
  /** Label to show in the document footer indicating the creation date of the document */
  'document-status.created': string;
  /** Label to show in the document status indicating the date of the status */
  'document-status.date': string;
  /** Label to show in the document footer indicating the last edited date of the document */
  'document-status.edited': string;
  /** Label to show in the document footer status line when a document was last published */
  'document-status.last-published': string;
  /** Label to show in the document footer indicating the document is not published*/
  'document-status.not-published': string;
  /** Label to show in the document footer indicating the published date of the document */
  'document-status.published': string;
  /** Label to show in document versions status for a published (non-live-edit) document */
  'document-status.published-at': string;
  /** Label to show in the document footer indicating the revision from date of the document */
  'document-status.revision-from': string;
  /** Label to show in the document footer indicating that the revision was not found */
  'document-status.revision-not-found': string;
  /** Toast description shown when saving changes is taking longer than expected */
  'document-store.slow-commit.description': string;
  /** Toast title shown when saving changes is taking longer than expected */
  'document-store.slow-commit.title': string;
  /** Toast title shown when a document's initial value could not be resolved */
  'document.initial-value.error.title': string;
  /**
   * Toast description shown when a document's initial value could not be
   * resolved. Includes the underlying error message.
   */
  'document.initial-value.error.description': string;
  /** Label to indicate that a document type was not found */
  'document.type.not-found': string;
  /** Error message shown when an action cannot be performed */
  'errors.unable-to-perform-action': string;
  /** The value of the <code>_key</code> property must be a unique string. */
  'form.error.duplicate-keys-alert.details.additional-description': string;
  /** This usually happens when items are created using an API client, and the <code>_key</code> property of each elements has been generated non-uniquely. */
  'form.error.duplicate-keys-alert.details.description': string;
  /** Developer info */
  'form.error.duplicate-keys-alert.details.title': string;
  /** Generate unique keys */
  'form.error.duplicate-keys-alert.generate-button.text': string;
  /** Several items in this list share the same identifier (key). Every item must have an unique identifier. */
  'form.error.duplicate-keys-alert.summary': string;
  /** Non-unique keys */
  'form.error.duplicate-keys-alert.title': string;
  /** Error text shown when a field with a given name cannot be found in the schema or is conditionally hidden but explicitly told to render  */
  'form.error.field-not-found': string;
  /** Add missing keys */
  'form.error.missing-keys-alert.add-button.text': string;
  /** The value of the <code>_key</code> property must be a unique string. */
  'form.error.missing-keys-alert.details.additional-description': string;
  /** This usually happens when items are created using an API client, and the <code>_key</code> property has not been included. */
  'form.error.missing-keys-alert.details.description': string;
  /** Developer info */
  'form.error.missing-keys-alert.details.title': string;
  /** Some items in the list are missing their keys. This must be fixed in order to edit the list. */
  'form.error.missing-keys-alert.summary': string;
  /** Missing keys */
  'form.error.missing-keys-alert.title': string;
  /** This usually happens when items are created using an API client, or when a custom input component has added invalid data to the list. */
  'form.error.mixed-array-alert.details.description': string;
  /** Developer info */
  'form.error.mixed-array-alert.details.title': string;
  /**  Remove non-object values */
  'form.error.mixed-array-alert.remove-button.text': string;
  /** Some items in this list are not objects. This must be fixed in order to edit the list. */
  'form.error.mixed-array-alert.summary': string;
  /** Invalid list values */
  'form.error.mixed-array-alert.title': string;
  /** Error text shown when form is unable to find an array item at a given indexed path */
  'form.error.no-array-item-at-index': string;
  /** Error text shown when form is unable to find an array item at a given keyed path */
  'form.error.no-array-item-at-key': string;
  /** The title above the error call stack output related to the crash */
  'form.error.unhandled-runtime-error.call-stack.title': string;
  /** The title above the error component stack provided by React's underlying ErrorBoundary component */
  'form.error.unhandled-runtime-error.component-stack.title': string;
  /** The error message for the unhandled error that crashed the Input component during render */
  'form.error.unhandled-runtime-error.error-message': string;
  /** The title for the error card rendered inside a field in place of a crashing input */
  'form.error.unhandled-runtime-error.title': string;
  /** Tooltip / accessible label for the field actions overflow menu button */
  'form.field.actions-menu.title': string;
  /** Form field deprecated label */
  'form.field.deprecated-label': string;
  /** Fallback title shown above field if it has no defined title */
  'form.field.untitled-field-label': string;
  /** Accessibility label for the icon that indicates the field has a validation error */
  'form.validation.has-error-aria-label': string;
  /** Accessibility label for the icon that indicates the field has validation information */
  'form.validation.has-info-aria-label': string;
  /** Accessibility label for the icon that indicates the field has a validation warning */
  'form.validation.has-warning-aria-label': string;
  /** Text shown when summarizing validation information, when the field has one or more errors */
  'form.validation.summary.errors-count_one': string;
  'form.validation.summary.errors-count_other': string;
  /** Text shown when summarizing validation information, when the field has one or more warnings */
  'form.validation.summary.warnings-count_one': string;
  'form.validation.summary.warnings-count_other': string;
  /** Tooltip for free trial navbar button indicating remaining days */
  'free-trial.tooltip.days-count_one': string;
  'free-trial.tooltip.days-count_other': string;
  /** Tooltip for free trial navbar button, once trial has ended */
  'free-trial.tooltip.trial-finished': string;
  /**
   * Label for "contact sales" call to action
   * These are titles for fallback links in the event the help & resources endpoint isn't able to be fetched
   */
  'help-resources.action.contact-sales': string;
  /**
   * Label for "help and support" call to action
   * These are titles for fallback links in the event the help & resources endpoint isn't able to be fetched
   */
  'help-resources.action.help-and-support': string;
  /**
   * Label for "join our community" call to action
   * These are titles for fallback links in the event the help & resources endpoint isn't able to be fetched
   */
  'help-resources.action.join-our-community': string;
  /** Information for what the latest sanity version is */
  'help-resources.latest-sanity-version': string;
  /** Text for link to register a studio */
  'help-resources.register-studio': string;
  /** Name of the sanity studio */
  'help-resources.studio': string;
  /** Menu item for registered studios (i.e. copies app id) */
  'help-resources.studio-app-id': string;
  /** Menu item for reloading Studio to update */
  'help-resources.studio-auto-update-now': string;
  /** Information for what studio version the current studio is running */
  'help-resources.studio-version': string;
  /** Subtitle for the studio version menu item when the running or pinned version is deprecated */
  'help-resources.studio-version-deprecated': string;
  /** Title for help and resources menus */
  'help-resources.title': string;
  /** Label for studio's which are up to date */
  'help-resources.up-to-date': string;
  /** Version text */
  'help-resources.version': string;
  /**Incoming references inspector title */
  'incoming-references.title': string;
  /** Text for button to cancel an ongoing upload */
  'input.files.common.cancel-upload': string;
  /** Text for menuitem upload button default asset source */
  'input.files.common.upload-placeholder.file-input-button.default-source.badge': string;
  /** Text for file input button in upload placeholder */
  'input.files.common.upload-placeholder.file-input-button.text': string;
  /** Uploading <FileName/> */
  'input.files.common.upload-progress': string;
  /** The referenced document cannot be opened, because the URL failed to be resolved */
  'input.reference.document-cannot-be-opened.failed-to-resolve-url': string;
  /** Label for adding item after a specific array item */
  'inputs.array.action.add-after': string;
  /** Label for adding item before a specific array item */
  'inputs.array.action.add-before': string;
  /** Label for adding array item action when the schema allows for only one schema type */
  'inputs.array.action.add-item': string;
  /**
   * Label for adding one array item action when the schema allows for multiple schema types,
   * eg. will prompt the user to select a type once triggered
   */
  'inputs.array.action.add-item-select-type': string;
  /** Label for copying an array item  */
  'inputs.array.action.copy': string;
  /** Array drag handle button tooltip */
  'inputs.array.action.drag.tooltip': string;
  /** Label for duplicating an array item  */
  'inputs.array.action.duplicate': string;
  /** Label for editing the item of a specific type, eg "Edit Person" */
  'inputs.array.action.edit': string;
  /** Tooltip text explaining why adding items is disabled when array max is reached */
  'inputs.array.action.max-reached': string;
  /** Label for removing an array item action  */
  'inputs.array.action.remove': string;
  /** Label for removing action when an array item has an error  */
  'inputs.array.action.remove-invalid-item': string;
  /** Label for expanding a collapsed array to show every item */
  'inputs.array.action.show-all-items_one': string;
  /** Label for expanding a collapsed array to show every item */
  'inputs.array.action.show-all-items_other': string;
  /** Label for collapsing an expanded array back to a limited number of items */
  'inputs.array.action.show-fewer-items': string;
  /** Label for viewing the item of a specific type, eg "View Person" */
  'inputs.array.action.view': string;
  /** Error description for the array item tooltip that explains that the current item can still be moved or deleted but not edited since the schema definition is not found */
  'inputs.array.error.can-delete-but-no-edit-description': string;
  /** Error label for toast when array could not resolve the initial value */
  'inputs.array.error.cannot-resolve-initial-value-title': string;
  /** Error label for toast when trying to upload one array item of a type that cannot be converted to array */
  'inputs.array.error.cannot-upload-unable-to-convert_one': string;
  /** Error label for toast when trying to upload multiple array items of a type that cannot be converted to array */
  'inputs.array.error.cannot-upload-unable-to-convert_other': string;
  /** Error description for the array item tooltip that explains that the current type item is not valid for the list  */
  'inputs.array.error.current-schema-not-declare-description': string;
  /** Error description to show how the item is being represented in the json format */
  'inputs.array.error.json-representation-description': string;
  /** Error description for the array item tooltip that explains what the error means with more context */
  'inputs.array.error.type-is-incompatible-prompt': string;
  /** Error title for when an item type within an array input is incompatible, used in the tooltip */
  'inputs.array.error.type-is-incompatible-title': string;
  /** Error label for unexpected errors in the Array Input */
  'inputs.array.error.unexpected-error': string;
  /** Label for the array insert menu all items filter  */
  'inputs.array.insert-menu.filter.all-items': string;
  /** Label for when the array insert menu search shows no items */
  'inputs.array.insert-menu.search.no-results': string;
  /** Placeholder for the array insert menu search field */
  'inputs.array.insert-menu.search.placeholder': string;
  /** Tooltip for the array insert menu grid view toggle */
  'inputs.array.insert-menu.toggle-grid-view.tooltip': string;
  /** Tooltip for the array insert menu list view toggle */
  'inputs.array.insert-menu.toggle-list-view.tooltip': string;
  /** Label for when the array input doesn't have any items */
  'inputs.array.no-items-label': string;
  /** Label for read only array fields */
  'inputs.array.read-only-label': string;
  /** Label for when the array input is resolving the initial value for the item */
  'inputs.array.resolving-initial-value': string;
  /** Tooltip content when boolean input is disabled */
  'inputs.boolean.disabled': string;
  /** Warning label when selected datetime is in the past */
  'inputs.dateTime.past-date-warning': string;
  /** Placeholder value for datetime input */
  'inputs.datetime.placeholder': string;
  /** Acessibility label for button to open file options menu */
  'inputs.file.actions-menu.file-options.aria-label': string;
  /** Unknown member kind: `{{kind}}` */
  'inputs.file.error.unknown-member-kind': string;
  /** The value of this field is not a valid file. Resetting this field will let you choose a new file. */
  'inputs.file.invalid-file-warning.description': string;
  /** Reset value */
  'inputs.file.invalid-file-warning.reset-button.text': string;
  /** Invalid file value */
  'inputs.file.invalid-file-warning.title': string;
  /** The upload could not be completed at this time. */
  'inputs.file.upload-failed.description': string;
  /** Upload failed */
  'inputs.file.upload-failed.title': string;
  /** Private access policy badge label */
  'inputs.files.common.access-policy.private.label': string;
  /** Private access policy badge tooltip */
  'inputs.files.common.access-policy.private.tooltip': string;
  /** Clear field */
  'inputs.files.common.actions-menu.clear-field.label': string;
  /** Copy URL */
  'inputs.files.common.actions-menu.copy-url.label': string;
  /** Download */
  'inputs.files.common.actions-menu.download.label': string;
  /** The URL is copied to the clipboard */
  'inputs.files.common.actions-menu.notification.url-copied': string;
  /** Open in source */
  'inputs.files.common.actions-menu.open-in-source.label': string;
  /** Replace */
  'inputs.files.common.actions-menu.replace.label': string;
  /** Upload */
  'inputs.files.common.actions-menu.upload.label': string;
  /** Drop to upload */
  'inputs.files.common.drop-message.drop-to-upload': string;
  /** Drop to upload `{{count}}` file */
  'inputs.files.common.drop-message.drop-to-upload-multi_one': string;
  /** Drop to upload `{{count}}` files */
  'inputs.files.common.drop-message.drop-to-upload-multi_other': string;
  /** Can't upload this file here */
  'inputs.files.common.drop-message.drop-to-upload.no-accepted-file-message_one': string;
  /** Can't upload any of these files here */
  'inputs.files.common.drop-message.drop-to-upload.no-accepted-file-message_other': string;
  /** `{{count}}` file can't be uploaded here */
  'inputs.files.common.drop-message.drop-to-upload.rejected-file-message_one': string;
  /** `{{count}}` files can't be uploaded here */
  'inputs.files.common.drop-message.drop-to-upload.rejected-file-message_other': string;
  /** Cannot upload `{{count}}` files */
  'inputs.files.common.placeholder.cannot-upload-some-files_one': string;
  'inputs.files.common.placeholder.cannot-upload-some-files_other': string;
  /** Drag or paste type here */
  'inputs.files.common.placeholder.drag-or-paste-to-upload_file': string;
  /** Drag or paste image here */
  'inputs.files.common.placeholder.drag-or-paste-to-upload_image': string;
  /** Drop to upload file */
  'inputs.files.common.placeholder.drop-to-upload_file': string;
  /** Drop to upload image */
  'inputs.files.common.placeholder.drop-to-upload_image': string;
  /** Read only */
  'inputs.files.common.placeholder.read-only': string;
  /** Select asset source destination for files to upload */
  'inputs.files.common.placeholder.select-asset-source-upload-destination': string;
  /** Can't upload files here */
  'inputs.files.common.placeholder.upload-not-supported': string;
  /** Clear upload */
  'inputs.files.common.stale-upload-warning.clear': string;
  /** An upload has made no progress for at least `{{staleThresholdMinutes}}` minutes and likely got interrupted. You can safely clear the incomplete upload and try uploading again. */
  'inputs.files.common.stale-upload-warning.description': string;
  /** Incomplete upload */
  'inputs.files.common.stale-upload-warning.title': string;
  /** Select file */
  'inputs.files.select-dialog.title': string;
  /** Tooltip text for action to crop image */
  'inputs.image.actions-menu.crop-image-tooltip': string;
  /** Accessibility label for button to open image edit dialog */
  'inputs.image.actions-menu.edit-details.aria-label': string;
  /** Accessibility label for button to open image options menu */
  'inputs.image.actions-menu.options.aria-label': string;
  /** Cannot upload this file here */
  'inputs.image.drag-overlay.cannot-upload-here': string;
  /** Drop image to upload */
  'inputs.image.drag-overlay.drop-to-upload-image': string;
  /** This field is read only */
  'inputs.image.drag-overlay.this-field-is-read-only': string;
  /** Image could not be loaded due to possible access restrictions */
  'inputs.image.error.possible-access-restriction': string;
  /** Unknown member kind: `{{kind}}` */
  'inputs.image.error.unknown-member-kind': string;
  /** Edit hotspot and crop */
  'inputs.image.hotspot-dialog.title': string;
  /** The value of this field is not a valid image. Resetting this field will let you choose a new image. */
  'inputs.image.invalid-image-warning.description': string;
  /** Reset value */
  'inputs.image.invalid-image-warning.reset-button.text': string;
  /** Invalid image value */
  'inputs.image.invalid-image-warning.title': string;
  /** Preview of uploaded image */
  'inputs.image.preview-uploaded-image': string;
  /** Select image */
  'inputs.image.select-dialog.title': string;
  /** The upload could not be completed at this time. */
  'inputs.image.upload-error.description': string;
  /** Upload failed */
  'inputs.image.upload-error.title': string;
  /** Adjust the rectangle to crop image. Adjust the circle to specify the area that should always be visible. */
  'inputs.imagetool.description': string;
  /** Error: `{{errorMessage}}` */
  'inputs.imagetool.load-error': string;
  /** Hotspot & Crop */
  'inputs.imagetool.title': string;
  /** Warnings displayed to developers when using the crop/hotspot tool on vector images, notifying them that crops/hotspot are not respected when serving the image in vector format. For the crop/hotspot to apply, images must be served in a raster format such as JPG or PNG, by appending eg `fm=jpg` to the image url, or calling `format('jpg')` if using `@sanity/image-url` */
  'inputs.imagetool.vector-warning.developer-info': string;
  /** See developer info */
  'inputs.imagetool.vector-warning.expand-developer-info': string;
  /** Gotcha: Serving vector images with hotspot and crop from the Sanity Image API */
  'inputs.imagetool.vector-warning.title': string;
  /** Convert to `{{targetType}}` */
  'inputs.invalid-value.convert-button.text': string;
  /** The current value (<code>`{{actualType}}`</code>) */
  'inputs.invalid-value.current-type': string;
  /** The property value is stored as a value type that does not match the expected type. */
  'inputs.invalid-value.description': string;
  /** The value of this property must be of type <code>`{{validType}}`</code> according to the schema. */
  'inputs.invalid-value.details.description': string;
  /** Only the following types are valid here according to schema: */
  'inputs.invalid-value.details.multi-type-description': string;
  /** Mismatching value types typically occur when the schema has recently been changed. */
  'inputs.invalid-value.details.possible-reason': string;
  /** Developer info */
  'inputs.invalid-value.details.title': string;
  /** -- Invalid Value Input -- */
  /** Reset value */
  'inputs.invalid-value.reset-button.text': string;
  /** Invalid property value */
  'inputs.invalid-value.title': string;
  /** Title for the "All fields" field group */
  'inputs.object.field-group-tabs.all-fields-title': string;
  /** Aria label for the "Field groups" select control on smaller screens */
  'inputs.object.field-group-tabs.aria-label': string;
  /** Text shown in field group select for a group with error validation */
  'inputs.object.field-group-tabs.validation-error': string;
  /** Text shown in field group select for a group with info validation */
  'inputs.object.field-group-tabs.validation-info': string;
  /** Text shown in field group select for a group with warning validation */
  'inputs.object.field-group-tabs.validation-warning': string;
  /** Read-only field description */
  'inputs.object.unknown-fields.read-only.description': string;
  /** Fallback description shown when the unknown reference preview cannot be loaded */
  'inputs.object.unknown-fields.reference.preview.unavailable': string;
  /** Remove field */
  'inputs.object.unknown-fields.remove-field-button.text': string;
  /** Encountered `{{count}}` fields that are not defined in the schema. */
  'inputs.object.unknown-fields.warning.description_one': string;
  'inputs.object.unknown-fields.warning.description_other': string;
  /** Detailed description of unknown field warning */
  'inputs.object.unknown-fields.warning.details.description_one': string;
  'inputs.object.unknown-fields.warning.details.description_other': string;
  /** Developer info */
  'inputs.object.unknown-fields.warning.details.title': string;
  /** Unknown field found */
  'inputs.object.unknown-fields.warning.title_one': string;
  'inputs.object.unknown-fields.warning.title_other': string;
  /** Collapse the editor to save screen space  */
  'inputs.portable-text.action.collapse-editor': string;
  /** Aria label for action to edit an existing annotation */
  'inputs.portable-text.action.edit-annotation-aria-label': string;
  /** Expand the editor to give more editing space */
  'inputs.portable-text.action.expand-editor': string;
  /** Label label for action to insert a block of a given type (`{{typeName}}`) */
  'inputs.portable-text.action.insert-block': string;
  /** Accessibility label for action to insert a block of a given type (`{{typeName}}`) */
  'inputs.portable-text.action.insert-block-aria-label': string;
  /** Label for action to insert an inline object of a given type (`{{typeName}}`) */
  'inputs.portable-text.action.insert-inline-object': string;
  /** Accessibility label for action to insert an inline object of a given type (`{{typeName}}`) */
  'inputs.portable-text.action.insert-inline-object-aria-label': string;
  /** Aria label for action to remove an annotation */
  'inputs.portable-text.action.remove-annotation-aria-label': string;
  /** Label for activate on focus with context of click and not focused */
  'inputs.portable-text.activate-on-focus-message_click': string;
  /** Label for activate on focus with context of click and focused */
  'inputs.portable-text.activate-on-focus-message_click-focused': string;
  /** Label for activate on focus with context of tap and not focused */
  'inputs.portable-text.activate-on-focus-message_tap': string;
  /** Aria label for the annotation object */
  'inputs.portable-text.annotation-aria-label': string;
  /** Title for dialog that allows editing an annotation */
  'inputs.portable-text.annotation-editor.title': string;
  /** Title of the default "link" annotation */
  'inputs.portable-text.annotation.link': string;
  /** Aria label for the block object */
  'inputs.portable-text.block.aria-label': string;
  /** Label for action to edit a block item, in the case where it is editable */
  'inputs.portable-text.block.edit': string;
  /** Accessibility label for the button that opens the actions menu on blocks */
  'inputs.portable-text.block.open-menu-aria-label': string;
  /** Label for action to open a reference, in the case of block-level reference types */
  'inputs.portable-text.block.open-reference': string;
  /** Label for action to remove a block item */
  'inputs.portable-text.block.remove': string;
  /** Label for action to view a block item, in the case where it is read-only and thus cannot be edited */
  'inputs.portable-text.block.view': string;
  /** Title of the "code" decorator */
  'inputs.portable-text.decorator.code': string;
  /** Title of the "em" (emphasis) decorator */
  'inputs.portable-text.decorator.emphasis': string;
  /** Title of the "strike-through" decorator */
  'inputs.portable-text.decorator.strike-through': string;
  /** Title of the "strong" decorator */
  'inputs.portable-text.decorator.strong': string;
  /** Title of the "underline" decorator */
  'inputs.portable-text.decorator.underline': string;
  /** Placeholder text for when the editor is empty */
  'inputs.portable-text.empty-placeholder': string;
  /** Aria label for the block object */
  'inputs.portable-text.inline-block.aria-label': string;
  /** Label for action to edit an inline object item */
  'inputs.portable-text.inline-object.edit': string;
  /** Aria label for icon for action to edit an inline object item */
  'inputs.portable-text.inline-object.edit-aria-label': string;
  /** Label for action to remove an inline object item */
  'inputs.portable-text.inline-object.remove': string;
  /** Aria label for icon for action to remove an inline object item */
  'inputs.portable-text.inline-object.remove-aria-label': string;
  /** Disclaimer text shown on invalid Portable Text value, when an action is available to unblock the user, but it is not guaranteed to be safe */
  'inputs.portable-text.invalid-value.action-disclaimer': string;
  /** Action presented when the Portable Text field value is invalid, when block with key `{{key}}` has a child with key `{{childKey}}` of type `{{childType}}` which is not allowed by the schema definition */
  'inputs.portable-text.invalid-value.disallowed-child-type.action': string;
  /** Text explaining that the Portable Text field value is invalid, when block with key `{{key}}` has a child with key `{{childKey}}` of type `{{childType}}` which is not allowed by the schema definition */
  'inputs.portable-text.invalid-value.disallowed-child-type.description': string;
  /** Action presented when the Portable Text field value is invalid, when child with key `{{key}}` has a type (`{{typeName}}`) that is not an allowed block type for this field */
  'inputs.portable-text.invalid-value.disallowed-type.action': string;
  /** Text explaining that the Portable Text field value is invalid, when child with key `{{key}}` has a type (`{{typeName}}`) that is not an allowed block type for this field */
  'inputs.portable-text.invalid-value.disallowed-type.description': string;
  /** Action presented when the Portable Text field value is invalid, when block with key `{{key}}` contains no children */
  'inputs.portable-text.invalid-value.empty-children.action': string;
  /** Text explaining that the Portable Text field value is invalid, when block with key `{{key}}` contains no children */
  'inputs.portable-text.invalid-value.empty-children.description': string;
  /** Label for the button to ignore invalid values in the Portable Text editor */
  'inputs.portable-text.invalid-value.ignore-button.text': string;
  /** Action presented when the Portable Text field value is invalid, when child with key `{{key}}` has a `_type` property that is set to `block`, but the block type defined in schema has a different name (`{{expectedTypeName}}`) */
  'inputs.portable-text.invalid-value.incorrect-block-type.action': string;
  /** Text explaining that the Portable Text field value is invalid, when child with key `{{key}}` has a `_type` property that is set to `block`, but the block type defined in schema has a different name (`{{expectedTypeName}}`) */
  'inputs.portable-text.invalid-value.incorrect-block-type.description': string;
  /** Action presented when the Portable Text field value is invalid, when block with key `{{key}}` has a span with key `{{childKey}}` that has a missing or invalid `text` property */
  'inputs.portable-text.invalid-value.invalid-span-text.action': string;
  /** Text explaining that the Portable Text field value is invalid, when block with key `{{key}}` has a span with key `{{childKey}}` that has a missing or invalid `text` property */
  'inputs.portable-text.invalid-value.invalid-span-text.description': string;
  /** Action presented when the Portable Text field value is invalid, when child with key `{{key}}` is missing a `_type` property, but seems to be a block of type `{{expectedTypeName}}` */
  'inputs.portable-text.invalid-value.missing-block-type.action': string;
  /** Text explaining that the Portable Text field value is invalid, when child with key `{{key}}` is missing a `_type` property, but seems to be a block of type `{{expectedTypeName}}` */
  'inputs.portable-text.invalid-value.missing-block-type.description': string;
  /** Action presented when the Portable Text field value is invalid, when block with key `{{key}}` has a child at `{{index}}` which is missing `_key` property */
  'inputs.portable-text.invalid-value.missing-child-key.action': string;
  /** Text explaining that the Portable Text field value is invalid, when block with key `{{key}}` has a child at `{{index}}` which is missing `_key` property */
  'inputs.portable-text.invalid-value.missing-child-key.description': string;
  /** Action presented when the Portable Text field value is invalid, when block with key `{{key}}` has a child with key `{{childKey}}` which is missing a `_type` property */
  'inputs.portable-text.invalid-value.missing-child-type.action': string;
  /** Text explaining that the Portable Text field value is invalid, when block with key `{{key}}` has a child with key `{{childKey}}` which is missing a `_type` property */
  'inputs.portable-text.invalid-value.missing-child-type.description': string;
  /** Action presented when the Portable Text field value is invalid, when child at `{{index}}` is missing the required `_key` property */
  'inputs.portable-text.invalid-value.missing-key.action': string;
  /** Text explaining that the Portable Text field value is invalid, when child at `{{index}}` is missing the required `_key` property */
  'inputs.portable-text.invalid-value.missing-key.description': string;
  /** Action presented when the Portable Text field value is invalid, when child with key `{{key}}` has a missing or invalid `children` property */
  'inputs.portable-text.invalid-value.missing-or-invalid-children.action': string;
  /** Text explaining that the Portable Text field value is invalid, when child with key `{{key}}` has a missing or invalid `children` property */
  'inputs.portable-text.invalid-value.missing-or-invalid-children.description': string;
  /** Action presented when the Portable Text field value is invalid, when child with key `{{key}}` has a missing or invalid `markDefs` property */
  'inputs.portable-text.invalid-value.missing-or-invalid-markdefs.action': string;
  /** Text explaining that the Portable Text field value is invalid, when child with key `{{key}}` has a missing or invalid `markDefs` property */
  'inputs.portable-text.invalid-value.missing-or-invalid-markdefs.description': string;
  /** Action presented when the Portable Text field value is invalid, when child with key `{{key}}` is missing a `_type` property  */
  'inputs.portable-text.invalid-value.missing-type.action': string;
  /** Text explaining that the Portable Text field value is invalid, when child with key `{{key}}` is missing a `_type` property  */
  'inputs.portable-text.invalid-value.missing-type.description': string;
  /** Action presented when the Portable Text field value is invalid, when block with key `{{key}}` contains a non-object child at index `{{index}}` */
  'inputs.portable-text.invalid-value.non-object-child.action': string;
  /** Text explaining that the Portable Text field value is invalid, when block with key `{{key}}` contains a non-object child at index `{{index}}` */
  'inputs.portable-text.invalid-value.non-object-child.description': string;
  /** Action presented when the Portable Text field value is invalid, when the Portable Text field is not an array, or the array is empty */
  'inputs.portable-text.invalid-value.not-an-array.action': string;
  /** Text explaining that the Portable Text field value is invalid, when the Portable Text field is not an array, or the array is empty */
  'inputs.portable-text.invalid-value.not-an-array.description': string;
  /** Action presented when the Portable Text field value is invalid, when child at `{{index}}` is not an object */
  'inputs.portable-text.invalid-value.not-an-object.action': string;
  /** Text explaining that the Portable Text field value is invalid, when child at `{{index}}` is not an object */
  'inputs.portable-text.invalid-value.not-an-object.description': string;
  /** Action presented when the Portable Text field value is invalid, when block with key `{{key}}` contains marks (`{{orphanedMarks}}`) that are not supported by the current schema */
  'inputs.portable-text.invalid-value.orphaned-marks.action': string;
  /** Text explaining that the Portable Text field value is invalid, when block with key `{{key}}` contains marks (`{{orphanedMarks}}`) that are not supported by the current schema */
  'inputs.portable-text.invalid-value.orphaned-marks.description': string;
  /** Title for the alert indicating that the Portable Text field has an invalid value */
  'inputs.portable-text.invalid-value.title': string;
  /** Title of "bulleted" list type */
  'inputs.portable-text.list-type.bullet': string;
  /** Title of numbered list type */
  'inputs.portable-text.list-type.number': string;
  /** Title of the "h1" block style */
  'inputs.portable-text.style.h1': string;
  /** Title of the "h2" block style */
  'inputs.portable-text.style.h2': string;
  /** Title of the "h3" block style */
  'inputs.portable-text.style.h3': string;
  /** Title of the "h4" block style */
  'inputs.portable-text.style.h4': string;
  /** Title of the "h5" block style */
  'inputs.portable-text.style.h5': string;
  /** Title of the "h6" block style */
  'inputs.portable-text.style.h6': string;
  /** Title shown when multiple blocks of varying styles is selected */
  'inputs.portable-text.style.multiple': string;
  /** Title of fallback when no style is given for a block */
  'inputs.portable-text.style.none': string;
  /** Title of the "normal" block style */
  'inputs.portable-text.style.normal': string;
  /** Title of the "quote" block style */
  'inputs.portable-text.style.quote': string;
  /** Tooltip on text whose annotation type is not defined in the schema */
  'inputs.portable-text.unknown-value.annotation': string;
  /** Tooltip on a block whose list type is not defined in the schema */
  'inputs.portable-text.unknown-value.list-item': string;
  /** Tooltip on text carrying a mark that is not defined in the schema */
  'inputs.portable-text.unknown-value.mark': string;
  /** Tooltip on a block whose style is not defined in the schema */
  'inputs.portable-text.unknown-value.style': string;
  /** Label for the table lane that appends a column */
  'inputs.portable-text.table.add-column': string;
  /** Label for the table lane that appends a row */
  'inputs.portable-text.table.add-row': string;
  /** Aria label for a table column's drag/select handle */
  'inputs.portable-text.table.column-handle': string;
  /** Label for the trash chip that deletes the selected column */
  'inputs.portable-text.table.delete-column': string;
  /** Label for the trash chip that deletes the selected row */
  'inputs.portable-text.table.delete-row': string;
  /** Label for the table menu item that deletes the table */
  'inputs.portable-text.table.delete-table': string;
  /** Label for the table menu's header row toggle */
  'inputs.portable-text.table.header-row': string;
  /** Aria label for the dots that insert a row or column at a boundary */
  'inputs.portable-text.table.insert-here': string;
  /** Aria label for the table menu button */
  'inputs.portable-text.table.menu-aria-label': string;
  /** Aria label for a table row's drag/select handle */
  'inputs.portable-text.table.row-handle': string;
  /** Label for the table menu item that selects the whole table */
  'inputs.portable-text.table.select-table': string;
  /** Label for action to clear the current value of the reference field */
  'inputs.reference.action.clear': string;
  /** Label for action to copy the current item (used within arrays) */
  'inputs.reference.action.copy': string;
  /** Label for action to create a new document from the reference input */
  'inputs.reference.action.create-new-document': string;
  /** Label for action to create a new document from the reference input, when there are multiple templates or document types to choose from */
  'inputs.reference.action.create-new-document-select': string;
  /** Label for action to duplicate the current item to a new item (used within arrays) */
  'inputs.reference.action.duplicate': string;
  /** Label for action that opens the referenced document in a new tab */
  'inputs.reference.action.open-in-new-tab': string;
  /** Label for action to remove the reference from an array */
  'inputs.reference.action.remove': string;
  /** Label for action to replace the current value of the field */
  'inputs.reference.action.replace': string;
  /** Label for action to cancel a previously initiated replace action  */
  'inputs.reference.action.replace-cancel': string;
  /** The cross-dataset reference field currently has a reference, but the feature has been disabled since it was created. This explains what can/cannot be done in its current state. */
  'inputs.reference.cross-dataset.feature-disabled-actions': string;
  /** A cross-dataset reference field exists but the feature has been disabled. A <DocumentationLink> component is available. */
  'inputs.reference.cross-dataset.feature-disabled-description': string;
  /** Title for a warning telling the user that the current project does not have the "cross dataset references" feature */
  'inputs.reference.cross-dataset.feature-unavailable-title': string;
  /** The cross-dataset reference points to a document with an invalid type  */
  'inputs.reference.cross-dataset.invalid-type': string;
  /** The referenced document will open in a new tab (due to external studio) */
  'inputs.reference.document-opens-in-new-tab': string;
  /** Error title for when the document is unavailable (for any possible reason) */
  'inputs.reference.error.document-unavailable-title': string;
  /** Error title for when the referenced document failed to be loaded */
  'inputs.reference.error.failed-to-load-document-title': string;
  /** Error title for when the reference search returned a document that is not an allowed type for the field */
  'inputs.reference.error.invalid-search-result-type-title': string;
  /** Error description for when the document referenced is not one of the types declared as allowed target types in schema */
  'inputs.reference.error.invalid-type-description': string;
  /** Error title for when the document referenced is not one of the types declared as allowed target types in schema */
  'inputs.reference.error.invalid-type-title': string;
  /** Error description for when the user does not have permissions to read the referenced document */
  'inputs.reference.error.missing-read-permissions-description': string;
  /** Error title for when the user does not have permissions to read the referenced document */
  'inputs.reference.error.missing-read-permissions-title': string;
  /** Error description for when the current reference value points to a document that does not exist (on weak references) */
  'inputs.reference.error.nonexistent-document-description': string;
  /** Error title for when the current reference value points to a document that does not exist (on weak references) */
  'inputs.reference.error.nonexistent-document-title': string;
  /** Label for button that clears the reference when it points to a document that does not exist (on weak references) */
  'inputs.reference.error.nonexistent-document.clear-button-label': string;
  /** Error title for when the search for a reference failed. Note that the message sent by the backend may not be localized. */
  'inputs.reference.error.search-failed-title': string;
  /** Label for when the GDR points to an invalid type  */
  'inputs.reference.global.invalid-type': string;
  /** Alternative text for the image shown in cross-dataset reference input */
  'inputs.reference.image-preview-alt-text': string;
  /** Description for alert shown when a reference in a live-edit document is marked as being weak, the referenced document exists, AND the reference is supposed to be have been strengthened on publish */
  'inputs.reference.incomplete-reference.finalize-action-description': string;
  /** Title for alert shown when a reference in a live-edit document is marked as being weak, the referenced document exists, AND the reference is supposed to be have been strengthened on publish */
  'inputs.reference.incomplete-reference.finalize-action-title': string;
  /** Description for alert shown when a reference in a live-edit document points to a document that exists and has been published, but the reference is still marked as weak */
  'inputs.reference.incomplete-reference.strengthen-action-description': string;
  /** Title for alert shown when a reference in a live-edit document points to a document that exists and has been published, but the reference is still marked as weak */
  'inputs.reference.incomplete-reference.strengthen-action-title': string;
  /** Label for button that triggers the action that strengthen a reference */
  'inputs.reference.incomplete-reference.strengthen-button-label': string;
  /** Label for button that triggers a retry attempt for reference metadata  */
  'inputs.reference.metadata-error.retry-button-label': string;
  /** Title for alert shown when reference metadata fails to be loaded */
  'inputs.reference.metadata-error.title': string;
  /** Message shown when no documents were found that matched the given search string */
  'inputs.reference.no-results-for-query': string;
  /** Text for tooltip showing when a document was edited, using relative time (eg "how long ago was it edited?") */
  'inputs.reference.preview.edited-at-time': string;
  /** Accessibility label for icon indicating that document does _not_ have any unpublished changes */
  'inputs.reference.preview.has-no-unpublished-changes-aria-label': string;
  /** Accessibility label for icon indicating that document has unpublished changes */
  'inputs.reference.preview.has-unpublished-changes-aria-label': string;
  /** Accessibility label for icon indicating that document does _not_ have a published version */
  'inputs.reference.preview.is-not-published-aria-label': string;
  /** Accessibility label for icon indicating that document has a published version */
  'inputs.reference.preview.is-published-aria-label': string;
  /** Text for tooltip indicating that a document has no unpublished edits */
  'inputs.reference.preview.no-unpublished-edits': string;
  /** Text for tooltip indicating that a document has not yet been published */
  'inputs.reference.preview.not-published': string;
  /** Text for tooltip showing when a document was published, using relative time (eg "how long ago was it published?") */
  'inputs.reference.preview.published-at-time': string;
  /** The referenced document no longer exist and might have been deleted (for weak references) */
  'inputs.reference.referenced-document-does-not-exist': string;
  /** The referenced document could not be displayed to the user because of insufficient permissions */
  'inputs.reference.referenced-document-insufficient-permissions': string;
  /** Label for when the reference input is resolving the initial value for an item */
  'inputs.reference.resolving-initial-value': string;
  /** Placeholder shown in a reference input with no current value */
  'inputs.reference.search-placeholder': string;
  /** Explanation of the consequences of leaving the reference as strong instead of weak */
  'inputs.reference.strength-mismatch.is-strong-consquences': string;
  /** Description for alert shown when a reference is supposed to be weak, but the actual value is strong */
  'inputs.reference.strength-mismatch.is-strong-description': string;
  /** Explanation of the consequences of leaving the reference as weak instead of strong */
  'inputs.reference.strength-mismatch.is-weak-consquences': string;
  /** Description for alert shown when a reference is supposed to be strong, but the actual value is weak */
  'inputs.reference.strength-mismatch.is-weak-description': string;
  /** Label for button that triggers the action that strengthens a reference on strength mismatch */
  'inputs.reference.strength-mismatch.strengthen-button-label': string;
  /** Title for alert shown when a reference is supposed to be weak/strong, but the actual value is the opposite of what it is supposed to be */
  'inputs.reference.strength-mismatch.title': string;
  /** Label for button that triggers the action that weakens a reference on strength mismatch */
  'inputs.reference.strength-mismatch.weaken-button-label': string;
  /** Label for action to clear the current value of the select field */
  'inputs.select.action.clear': string;
  /** Action message for generating the slug */
  'inputs.slug.action.generate': string;
  /** Loading message for when the input is actively generating a slug */
  'inputs.slug.action.generating': string;
  /** Error message for when the source to generate a slug from is missing */
  'inputs.slug.error.missing-source': string;
  /** Placeholder for an empty tag input */
  'inputs.tags.placeholder': string;
  /** Placeholder for an empty tag input on touch devices */
  'inputs.tags.placeholder_touch': string;
  /** Convert to `{{targetType}}` */
  'inputs.untyped-value.convert-button.text': string;
  /** Encountered an object value without a <code>_type</code> property. */
  'inputs.untyped-value.description': string;
  /** Either remove the <code>name</code> property of the object declaration, or set <code>_type</code> property on items. */
  'inputs.untyped-value.details.description': string;
  /** Current value (<code>object</code>): */
  'inputs.untyped-value.details.json-dump-prefix': string;
  /** The following types are valid here according to schema: */
  'inputs.untyped-value.details.multi-type-description': string;
  /** Developer info */
  'inputs.untyped-value.details.title': string;
  /** Property value missing <code>_type</code> */
  'inputs.untyped-value.title': string;
  /** Unset value */
  'inputs.untyped-value.unset-item-button.text': string;
  /** Select video */
  'inputs.video.select-dialog.title': string;
  /** The fallback explanation if no context is provided */
  'insufficient-permissions-message.not-authorized-explanation': string;
  /** The explanation when unable to create any document at all */
  'insufficient-permissions-message.not-authorized-explanation_create-any-document': string;
  /** The explanation when unable to create a particular document */
  'insufficient-permissions-message.not-authorized-explanation_create-document': string;
  /** The explanation when unable to create a particular type of document */
  'insufficient-permissions-message.not-authorized-explanation_create-document-type': string;
  /** The explanation when unable to create a new reference in a document */
  'insufficient-permissions-message.not-authorized-explanation_create-new-reference': string;
  /** The explanation when unable to delete a particular document */
  'insufficient-permissions-message.not-authorized-explanation_delete-document': string;
  /** The explanation when unable to delete a schedule on scheduled publishing */
  'insufficient-permissions-message.not-authorized-explanation_delete-schedules': string;
  /** The explanation when unable to discard changes in a particular document */
  'insufficient-permissions-message.not-authorized-explanation_discard-changes': string;
  /** The explanation when unable to duplicate a particular document */
  'insufficient-permissions-message.not-authorized-explanation_duplicate-document': string;
  /** The explanation when unable to edit a schedule on scheduled publishing */
  'insufficient-permissions-message.not-authorized-explanation_edit-schedules': string;
  /** The explanation when unable to execute a schedule on scheduled publishing */
  'insufficient-permissions-message.not-authorized-explanation_execute-schedules': string;
  /** The explanation when unable to publish a particular document */
  'insufficient-permissions-message.not-authorized-explanation_publish-document': string;
  /** The explanation when unable to unpublish a particular document */
  'insufficient-permissions-message.not-authorized-explanation_unpublish-document': string;
  /** Appears after the not-authorized message. Lists the current roles. */
  'insufficient-permissions-message.roles': string;
  /** The title for the insufficient permissions message component */
  'insufficient-permissions-message.title': string;
  /** Body of the logged-out banner shown above the login form for an unknown reason */
  'login.logged-out.generic': string;
  /** Body of the logged-out banner shown above the login form when the session expired */
  'login.logged-out.session-expired': string;
  /** Title of the banner shown above the login form after the studio logs the user out */
  'login.logged-out.title': string;
  /** Unexpected error: `{{error}}` */
  'member-field-error.unexpected-error': string;
  /** Text shown in warning when browser is using HTTP1 to communicate with the Sanity API */
  'network-check.slow-protocol-warning.description': string;
  /** Text for link that takes the user to the Sanity documentation to learn more about the HTTP1 issue */
  'network-check.slow-protocol-warning.learn-more-button.text': string;
  /** Text for link that takes the user to the Sanity documentation to learn more about the HTTP1 issue */
  'network-check.slow-protocol-warning.snooze-button.text': string;
  /** Title text for the warning dialog when browser is using HTTP1 to communicate with the Sanity API */
  'network-check.slow-protocol-warning.title': string;
  /** Button label for "Create new document" button */
  'new-document.button': string;
  /**
   * Tooltip message displayed when hovering/activating the "Create new document" action,
   * when there are templates/types available for creation
   */
  'new-document.create-new-document-label': string;
  /** Placeholder for the "filter" input within the new document menu */
  'new-document.filter-placeholder': string;
  /** Loading indicator text within the new document menu */
  'new-document.loading': string;
  /** Accessibility label for the list displaying options in the new document menu */
  'new-document.new-document-aria-label': string;
  /** Message for when there are no document type options in the new document menu */
  'new-document.no-document-types-found': string;
  /**
   * Tooltip message displayed when hovering/activating the "Create new document" action,
   * when there are no templates/types to create from
   */
  'new-document.no-document-types-label': string;
  /** Message for when no results are found for a specific search query in the new document menu */
  'new-document.no-results': string;
  /** Aria label for the button that opens the "Create new document" popover/dialog */
  'new-document.open-dialog-aria-label': string;
  /** Title for "Create new document" dialog */
  'new-document.title': string;
  /** @deprecated Label for button that will make the browser reload when users' studio version is out-of-date */
  'package-version.new-package-available.reload-button': string;
  /** @deprecated Title of the alert for studio users when packages in their studio are out-of-date */
  'package-version.new-package-available.title': string;
  /** Label for action to invite members to the current studio project */
  'presence.action.manage-members': string;
  /** Accessibility label for presence menu button */
  'presence.aria-label': string;
  /** Message description for when no one else is currently present */
  'presence.no-one-else-description': string;
  /** Message title for when no one else is currently present */
  'presence.no-one-else-title': string;
  /** Message for when a user is not in a document (displayed in the global presence menu) */
  'presence.not-in-a-document': string;
  /** Tooltip content text for presence menu button */
  'presence.tooltip-content': string;
  /** Fallback title shown when a preview does not provide a title */
  'preview.default.title-fallback': string;
  /** Fallback preview value for types that have "no value" (eg null, undefined) */
  'preview.fallback.no-value': string;
  /** Alternative text for image being shown while image is being uploaded, in previews */
  'preview.image.file-is-being-uploaded.alt-text': string;
  'relative-time.just-now': string;
  /** Action message to add document to new release */
  'release.action.add-to-new-release': string;
  /** Action message to add document to release */
  'release.action.add-to-release': string;
  /** Tooltip message for document that is already added to release */
  'release.action.already-exists-in-release': string;
  /** Action message for when document is already in release  */
  'release.action.already-in-release': string;
  /** Action message for when you click to view all versions you can copy the current document to */
  'release.action.copy-to': string;
  /** Action message for creating new releases */
  'release.action.create-new': string;
  /** Description for toast when version creation failed */
  'release.action.create-version.failure': string;
  /** Action message for deleting a scheduled publish */
  'release.action.delete-schedule': string;
  /** Action message for when document is already in release  */
  'release.action.discard-version': string;
  /** Description for toast when version discarding failed */
  'release.action.discard-version.failure': string;
  /** Tooltip/label for the action that opens the release edit dialog on the detail page */
  'release.action.edit-details': string;
  /** Action message for editing the schedule of a scheduled publish */
  'release.action.edit-schedule': string;
  /** Action message for when a new release is created off an existing version, draft or published document */
  'release.action.new-release': string;
  /** Explanation provided when releases can't be created because the workspace release limit has been reached */
  'release.action.new-release.limit-reached': string;
  'release.action.new-release.limit-reached_other': string;
  /** Action message for pausing a scheduled draft so it can be edited */
  'release.action.pause-to-edit': string;
  /** Tooltip message for not having permissions for creating new releases */
  'release.action.permission.error': string;
  /** Action message for running a scheduled draft immediately */
  'release.action.publish-now': string;
  /** Error message description for when a version is reverted from being unpublished */
  'release.action.revert-unpublish-version.failure.description': string;
  /** Error message title for when a version is reverted from being unpublished */
  'release.action.revert-unpublish-version.failure.title': string;
  /** Action message description for when a version is reverted from being unpublished */
  'release.action.revert-unpublish-version.success.description': string;
  /** Action message title for when a version is reverted from being unpublished */
  'release.action.revert-unpublish-version.success.title': string;
  /** Action message for scheduling a paused draft */
  'release.action.schedule-publish': string;
  /** Error message for when a version is set to be unpublished */
  'release.action.unpublish-version.failure': string;
  /** Action message for when a version is set to be unpublished successfully */
  'release.action.unpublish-version.success': string;
  /** Action message for when the view release is pressed */
  'release.action.view-release': string;
  /** Action message for when the view scheduled drafts is pressed */
  'release.action.view-scheduled-drafts': string;
  /** Label for banner when release is scheduled */
  'release.banner.scheduled-for-publishing-on': string;
  /** Label for button to show other variants in the document perspective list */
  'release.chip.button.other-variants_one': string;
  /** Label for button to show other variants in the document perspective list */
  'release.chip.button.other-variants_other': string;
  /** Label for button to show other versions in the document perspective list*/
  'release.chip.button.other-versions_one': string;
  /** Label for button to show other versions in the document perspective list */
  'release.chip.button.other-versions_other': string;
  /** Label for Draft chip in document header */
  'release.chip.draft': string;
  /** Label for Draft chip in global header */
  'release.chip.global.drafts': string;
  /** Label for Published chip in document header */
  'release.chip.published': string;
  /** Label for tooltip in chip when document is in an archived release */
  'release.chip.tooltip.archived': string;
  /** Label for tooltip in chip with the created date */
  'release.chip.tooltip.created-date': string;
  /** Label for tooltip in draft chip when it's a live edit document */
  'release.chip.tooltip.draft-disabled.live-edit': string;
  /** Label for tooltip in chip with the lasted edited date */
  'release.chip.tooltip.edited-date': string;
  /** Label for tooltip in chip when document is intended for a future release that hasn't been scheduled */
  'release.chip.tooltip.intended-for-date': string;
  /** Label for tooltip in chip when there is no recent draft edits */
  'release.chip.tooltip.no-edits': string;
  /** Label for tooltip in chip when document isn't published */
  'release.chip.tooltip.not-published': string;
  'release.chip.tooltip.other-variants_one': string;
  'release.chip.tooltip.other-variants_other': string;
  'release.chip.tooltip.other-versions_one': string;
  'release.chip.tooltip.other-versions_other': string;
  /** Label for tooltip in chip with the published date */
  'release.chip.tooltip.published-date': string;
  /** Label for tooltip in chip when document is in a release that has been scheduled */
  'release.chip.tooltip.scheduled-for-date': string;
  /** Label for tooltip in scheduled chip without a known date */
  'release.chip.tooltip.unknown-date': string;
  /** Label for tooltip on deleted release */
  'release.deleted-tooltip': string;
  /** Title for copying version to a new release dialog */
  'release.dialog.copy-to-release.title': string;
  /** Title for action create a release */
  'release.dialog.create.confirm': string;
  /** Title for creating releases dialog */
  'release.dialog.create.title': string;
  /** Label for the save action in the edit release dialog */
  'release.dialog.edit.confirm': string;
  /** Field label for the release description in the edit release dialog */
  'release.dialog.edit.description-label': string;
  /** Title for the edit release dialog */
  'release.dialog.edit.title': string;
  /** Field label for the release title in the edit release dialog */
  'release.dialog.edit.title-label': string;
  /** Body text when deleting scheduled draft and draft is already up to date */
  'release.dialog.delete-schedule-draft.body-already-current': string;
  /** Body text when deleting scheduled draft and changes will be saved to draft */
  'release.dialog.delete-schedule-draft.body-will-save-to-draft': string;
  /** Body text when deleting scheduled draft with checkbox shown for user choice */
  'release.dialog.delete-schedule-draft.body-with-choice': string;
  /** Confirm button text for deleting a scheduled draft */
  'release.dialog.delete-schedule-draft.confirm': string;
  /** Checkbox label for copying scheduled draft to draft before deletion */
  'release.dialog.delete-schedule-draft.copy-checkbox': string;
  /** Explanation text shown when scheduled draft has different changes than current draft */
  'release.dialog.delete-schedule-draft.different-changes-explanation': string;
  /** Header for the dialog confirming deletion of a scheduled draft */
  'release.dialog.delete-schedule-draft.header': string;
  /** Explanation text shown when the current draft could not be read */
  'release.dialog.delete-schedule-draft.unresolved-draft-explanation': string;
  /** Explanation text shown when the scheduled draft could not be read */
  'release.dialog.delete-schedule-draft.unresolved-scheduled-draft-explanation': string;
  /** Body text for change schedule dialog */
  'release.dialog.edit-schedule.body': string;
  /** Confirm button text for change schedule dialog */
  'release.dialog.edit-schedule.confirm': string;
  /** Header for change schedule dialog */
  'release.dialog.edit-schedule.header': string;
  /** Body text for the dialog confirming running a scheduled draft immediately */
  'release.dialog.publish-scheduled-draft.body': string;
  /** Confirm button text for running a scheduled draft immediately */
  'release.dialog.publish-scheduled-draft.confirm': string;
  /** Header for the dialog confirming running a scheduled draft immediately */
  'release.dialog.publish-scheduled-draft.header': string;
  /** Label for description in tooltip to explain release types */
  'release.dialog.tooltip.description': string;
  /** Label for noting that a release time is not final */
  'release.dialog.tooltip.note': string;
  /** Title for tooltip to explain release time */
  'release.dialog.tooltip.title': string;
  /** The placeholder text when the release doesn't have a description */
  'release.form.placeholder-describe-release': string;
  /** Tooltip for button to hide release visibility */
  'release.layer.hide': string;
  /** Label for the release menu */
  'release.menu.label': string;
  /** Menu item label for scheduled drafts */
  'release.menu.scheduled-drafts': string;
  /** Tooltip for the release menu */
  'release.menu.tooltip': string;
  /** Menu item label for viewing content releases */
  'release.menu.view-releases': string;
  /** Label for draft perspective in navbar */
  'release.navbar.drafts': string;
  /** Label for published releases in navbar */
  'release.navbar.published': string;
  /** Tooltip for releases navigation in navbar */
  'release.navbar.tooltip': string;
  /** The placeholder text when the release doesn't have a title */
  'release.placeholder-untitled-release': string;
  /** Description for warning that the published schedule time is in the past */
  'release.schedule-dialog.publish-date-in-past-warning': string;
  /** Label for date picker when scheduling a release */
  'release.schedule-dialog.select-publish-date-label': string;
  /** The toast description that will be shown when the user has a release perspective which is now archived */
  'release.toast.archived-release.description': string;
  /** The toast title that will be shown when the user has a release perspective which is now archived */
  'release.toast.archived-release.title': string;
  /** The toast title that will be shown the creating a release fails */
  'release.toast.create-release-error.title': string;
  /** The toast title shown when saving edits to a release's details fails */
  'release.toast.edit-release-error.title': string;
  /** Error toast for deleting a scheduled draft */
  'release.toast.delete-schedule-draft.error': string;
  /** Success toast for deleting a scheduled draft */
  'release.toast.delete-schedule-draft.success': string;
  /** The toast title that will be shown when the user has a release perspective which is now deleted
   * @deprecated – no longer needed
   * */
  'release.toast.not-found-release.title': string;
  /** Error toast for pausing a scheduled draft */
  'release.toast.pause-scheduled-draft.error': string;
  /** Error toast for running a scheduled publish immediately */
  'release.toast.publish-scheduled-draft.error': string;
  /** Success toast for running a scheduled publish immediately */
  'release.toast.publish-scheduled-draft.success': string;
  /** The toast description that will be shown when the user has a release perspective which is now published */
  'release.toast.published-release.description': string;
  /** The toast title that will be shown when the user has a release perspective which is now published */
  'release.toast.published-release.title': string;
  /** Error toast for rescheduling a draft */
  'release.toast.reschedule-scheduled-draft.error': string;
  /** Success toast for rescheduling a draft */
  'release.toast.reschedule-scheduled-draft.success': string;
  /** Error toast for scheduling a paused draft */
  'release.toast.schedule-publish.error': string;
  /** Success toast for scheduling a paused draft */
  'release.toast.schedule-publish.success': string;
  /** The toast title that will be shown when the user has a scheduled draft perspective which is now published */
  'release.toast.scheduled-draft-published.title': string;
  /** Label for when a version of a document has already been added to the release */
  'release.tooltip.already-added': string;
  /** Label for when a release is scheduled / scheduling and a user can't add a document version to it */
  'release.tooltip.locked': string;
  /** Label for the release type 'as soon as possible' */
  'release.type.asap': string;
  /** Label for the release type 'at time', meaning it's a release with a scheduled date */
  'release.type.scheduled': string;
  /** Label for the release type 'undecided' */
  'release.type.undecided': string;
  /** Tooltip for the dropdown to show all versions of document */
  'release.version-list.tooltip': string;
  /** Button text for contacting support in the releases misconfiguration dialog */
  'releases.upsell.misconfiguration.contact-support': string;
  /** Header for the releases misconfiguration dialog */
  'releases.upsell.misconfiguration.header': string;
  /** Message shown in the releases misconfiguration dialog */
  'releases.upsell.misconfiguration.message': string;
  /** Confirm button text for the schedule publish dialog */
  'schedule-publish-dialog.confirm': string;
  /** Description for the schedule publish dialog */
  'schedule-publish-dialog.description': string;
  /** Header for the schedule publish dialog */
  'schedule-publish-dialog.header': string;
  /** Title for a scheduled draft release */
  'scheduled-drafts.release.title': string;
  /** Label for the dataset of the workspace whose schema failed to compile */
  'schema-errors.location.dataset': string;
  /** Label for the project ID of the workspace whose schema failed to compile */
  'schema-errors.location.project-id': string;
  /** Label for the source within the workspace whose schema failed to compile */
  'schema-errors.location.source': string;
  /** Title for the section naming the workspace whose schema failed to compile */
  'schema-errors.location.title': string;
  /** Label for the workspace whose schema failed to compile */
  'schema-errors.location.workspace': string;
  /** Title for the schema errors screen */
  'schema-errors.title': string;
  /** Accessibility label to open search action when the search would go fullscreen (eg on narrower screens) */
  'search.action-open-aria-label': string;
  /** Action label for adding a search filter */
  'search.action.add-filter': string;
  /** Action label for clearing search filters */
  'search.action.clear-filters': string;
  /** Label for action to clear recent searches */
  'search.action.clear-recent-searches': string;
  /** Accessibility label for action to clear all currently applied document type filters */
  'search.action.clear-type-filters-aria-label': string;
  /** Label for action to clear all currently applied document type filters */
  'search.action.clear-type-filters-label': string;
  /** Accessibility label for when the search is full screen (on narrow screens) and you want to close the search */
  'search.action.close-search-aria-label': string;
  /** Accessibility label for filtering by document type */
  'search.action.filter-by-document-type-aria-label': string;
  /** Accessibility action label for removing an already applied search filter */
  'search.action.remove-filter-aria-label': string;
  /**
   * Text displayed when either no document type(s) have been selected, or we need a fallback,
   * eg "Search for all types".
   */
  'search.action.search-all-types': string;
  /**
   * Text displayed when we are able to determine one or more document types that will be used for
   * searching, and can fit within the space assigned by the design.
   */
  'search.action.search-specific-types': string;
  /**
   * Text displayed when we are able to determine one or more document types that will be used for
   * searching, but cannot list them all within the space assigned by the design, so we need an
   * additional "and X more" suffix. Allows using pluralization suffixes, eg `_one`, `_other` etc.
   */
  'search.action.search-specific-types-truncated': string;
  /** Dialog title for action to select an asset of unknown type */
  'search.action.select-asset': string;
  /** Dialog title for action to select a file asset */
  'search.action.select-asset_file': string;
  /** Dialog title for action to select an image asset */
  'search.action.select-asset_image': string;
  /** Accessibility label for when the search is full screen (on narrow screens) and you want to hide filters */
  'search.action.toggle-filters-aria-label_hide': string;
  /** Accessibility label for when the search is full screen (on narrow screens) and you want to show filters */
  'search.action.toggle-filters-aria-label_show': string;
  /** Label for when the search is full screen (on narrow screens) and you want to hide filters */
  'search.action.toggle-filters-label_hide': string;
  /** Label for when the search is full screen (on narrow screens) and you want to show filters */
  'search.action.toggle-filters-label_show': string;
  /** Tooltip text for the global search button */
  'search.button.tooltip': string;
  /**
   * A list of provided types (use `list` formatter preferably).
   */
  'search.document-type-list': string;
  /**
   * In the context of a list of document types - no filtering selection has been done,
   * thus the default is "all types".
   */
  'search.document-type-list-all-types': string;
  /**
   * A list of provided types that has been truncated - more types are included but not displayed,
   * thus we need to indicate that there are more. Allows using pluralization suffixes,
   * eg `_one`, `_other` etc.
   */
  'search.document-type-list-truncated': string;
  /** Accessibility label for list displaying the available document types */
  'search.document-types-aria-label': string;
  /** Label for when no document types matching the filter are found */
  'search.document-types-no-matches-found': string;
  /** Description for error when a filter cannot be displayed, describes that you should check the schema */
  'search.error.display-filter-description': string;
  /** Title for error when a filter cannot be displayed (mainly a developer-oriented error) */
  'search.error.display-filter-title': string;
  /** Description for error when no valid asset source is found, describes that you should check the the current studio config */
  'search.error.no-valid-asset-source-check-config-description': string;
  /** Description for error when no valid asset source is found, describes that only the default asset is supported */
  'search.error.no-valid-asset-source-only-default-description': string;
  /** Title for error when no valid asset sources found */
  'search.error.no-valid-asset-source-title': string;
  /** Helpful description for when search returned an error that we are not able to describe in detail */
  'search.error.unspecified-error-help-description': string;
  /** Title label for when search returned an error that we are not able to describe in detail */
  'search.error.unspecified-error-title': string;
  /**
   * Label for "All fields", a label that appears above the list of available fields when filtering.
   * If one or more document type has been chosen as filter, this label is replaced with a group of
   * fields per selected document type
   */
  'search.filter-all-fields-header': string;
  /** Label for the action of changing from one file to a different file in asset search filter */
  'search.filter-asset-change_file': string;
  /** Label for the action of changing from one image to a different image in asset search filter */
  'search.filter-asset-change_image': string;
  /** Label for the action of clearing the currently selected asset in an image/file filter */
  'search.filter-asset-clear': string;
  /** Label for the action of selecting a file in asset search filter */
  'search.filter-asset-select_file': string;
  /** Label for the action of selecting an image in asset search filter */
  'search.filter-asset-select_image': string;
  /** Label for boolean filter - false */
  'search.filter-boolean-false': string;
  /** Label for boolean filter - true */
  'search.filter-boolean-true': string;
  /** Accessibility label for list that lets you filter fields by title, when adding a new filter in search */
  'search.filter-by-title-aria-label': string;
  /** Accessibility label for date filter input */
  'search.filter-date-aria-label': string;
  /** Accessibility label for selecting end date on the date range search filter */
  'search.filter-date-range-end-date-aria-label': string;
  /** Accessibility label for selecting start date on the date range search filter */
  'search.filter-date-range-start-date-aria-label': string;
  /** Accessibility label for selecting the unit (day/month/year) when adding "X days ago" search filter */
  'search.filter-date-unit-aria-label': string;
  /**
   * Label for "Days"/"Months"/"Years" when selecting it as unit in "X days ago" search filter.
   * Capitalized, as it would be listed in a dropdown.
   */
  'search.filter-date-unit_days': string;
  'search.filter-date-unit_months': string;
  'search.filter-date-unit_years': string;
  /** Accessibility label for the input value (days/months/years) when adding "X days ago" search filter */
  'search.filter-date-value-aria-label': string;
  /** Label for "field description" shown in tooltip when navigating list of possible fields to filter */
  'search.filter-field-tooltip-description': string;
  /** Label for "field name" shown in tooltip when navigating list of possible fields to filter */
  'search.filter-field-tooltip-name': string;
  /** Label for "Used in document types", a list of the document types a field appears in. Shown in tooltip when navigating list of possible fields to filter */
  'search.filter-field-tooltip-used-in-document-types': string;
  /** Label for when no fields/filters are found for the given term */
  'search.filter-no-matches-found': string;
  /** Placeholder value for maximum numeric value filter */
  'search.filter-number-max-value-placeholder': string;
  /** Placeholder value for minimum numeric value filter */
  'search.filter-number-min-value-placeholder': string;
  /** Placeholder value for the number filter */
  'search.filter-number-value-placeholder': string;
  /** Placeholder for the "Filter" input, when narrowing possible fields/filters */
  'search.filter-placeholder': string;
  /** Label for the action of clearing the currently selected document in a reference filter */
  'search.filter-reference-clear': string;
  /**
   * Label for "shared fields", a label that appears above a list of fields that all filtered types
   * have in common, when adding a new filter. For instance, if "book" and "employee" both have a
   * "title" field, this field would be listed under "shared fields".
   * */
  'search.filter-shared-fields-header': string;
  /** Placeholder value for the string filter */
  'search.filter-string-value-placeholder': string;
  /** Label/placeholder prompting user to select one of the predefined, allowed values for a string field */
  'search.filter-string-value-select-predefined-value': string;
  /** Accessibility label for the "Filters" list, that is shown when using "Add filter" in search (singular) */
  'search.filters-aria-label_one': string;
  /** Accessibility label for the "Filters" list, that is shown when using "Add filter" in search (plural) */
  'search.filters-aria-label_other': string;
  /** Label for instructions on how to use the search - displayed when no recent searches are available */
  'search.instructions': string;
  /** Helpful description for when no search results are found */
  'search.no-results-help-description': string;
  /** Title label for when no search results are found */
  'search.no-results-title': string;
  /**
   * Individual search operators.
   *
   * The `name` variant is the form we use when the user is building a query, and selecting from a
   * list of available operators for a field. Keep in mind that since the user knows what the field
   * represents, we do not need to contextualize too much, and that the user may not be a developer
   * eg prefer "quantity is" over "array has length". Additionally, (if applicable in language) use
   * lowercased names.
   *
   * The `description` variant is the form shown once the filter has enough information to apply,
   * and is shown in the list of applied filters. It is passed components that _should_ be used to
   * compose the filter string, and to format them correctly:
   *
   * `<Field/>` - eg "Bird species", "Category", "Date of birth"
   * `<Operator>operator text</Operator>` - eg "has ≤", "includes", "is"
   * `<Value>{{value}}</Value>` - eg "Hawk", "Sparrow", "Eagle"
   *
   * Where applicable, a `count` is passed, allowing you to pluralize where needed, by using
   * suffixes such as `_zero`, `_one`, `_other` etc.
   *
   * Prefer (reasonable) brevity since many filters may be applied. For instance:
   * `<Field/> has ≤ <Value/>` may be better than
   * `<Field/> has less than or equal to <Value/>`
   **/
  'search.operator.array-count-equal.description_one': string;
  'search.operator.array-count-equal.description_other': string;
  'search.operator.array-count-equal.name': string;
  'search.operator.array-count-gt.description_one': string;
  'search.operator.array-count-gt.description_other': string;
  'search.operator.array-count-gt.name': string;
  'search.operator.array-count-gte.description_one': string;
  'search.operator.array-count-gte.description_other': string;
  'search.operator.array-count-gte.name': string;
  'search.operator.array-count-lt.description_one': string;
  'search.operator.array-count-lt.description_other': string;
  'search.operator.array-count-lt.name': string;
  'search.operator.array-count-lte.description_one': string;
  'search.operator.array-count-lte.description_other': string;
  'search.operator.array-count-lte.name': string;
  'search.operator.array-count-not-equal.description_one': string;
  'search.operator.array-count-not-equal.description_other': string;
  'search.operator.array-count-not-equal.name': string;
  /**
   * Array should have a count within the range of given filter values.
   * Gets passed `{{from}}` and `{{to}}` values.
   **/
  'search.operator.array-count-range.description': string;
  'search.operator.array-count-range.name': string;
  'search.operator.array-list-includes.description': string;
  'search.operator.array-list-includes.name': string;
  'search.operator.array-list-not-includes.description': string;
  'search.operator.array-list-not-includes.name': string;
  'search.operator.array-reference-includes.description': string;
  'search.operator.array-reference-includes.name': string;
  'search.operator.array-reference-not-includes.description': string;
  'search.operator.array-reference-not-includes.name': string;
  'search.operator.asset-file-equal.description': string;
  'search.operator.asset-file-equal.name': string;
  'search.operator.asset-file-not-equal.description': string;
  'search.operator.asset-file-not-equal.name': string;
  'search.operator.asset-image-equal.description': string;
  'search.operator.asset-image-equal.name': string;
  'search.operator.asset-image-not-equal.description': string;
  'search.operator.asset-image-not-equal.name': string;
  /**
   * Boolean value should be the given filter value (true/false).
   * Context passed is `true` and `false`, allowing for more specific translations:
   * - `search.operator.boolean-equal.description_true`
   * - `search.operator.boolean-equal.description_false`
   */
  'search.operator.boolean-equal.description': string;
  'search.operator.boolean-equal.name': string;
  'search.operator.date-after.description': string;
  'search.operator.date-after.name': string;
  'search.operator.date-before.description': string;
  'search.operator.date-before.name': string;
  'search.operator.date-equal.description': string;
  'search.operator.date-equal.name': string;
  'search.operator.date-last.description': string;
  'search.operator.date-last.name': string;
  'search.operator.date-not-equal.description': string;
  'search.operator.date-not-equal.name': string;
  'search.operator.date-range.description': string;
  'search.operator.date-range.name': string;
  'search.operator.date-time-after.description': string;
  'search.operator.date-time-after.name': string;
  'search.operator.date-time-before.description': string;
  'search.operator.date-time-before.name': string;
  'search.operator.date-time-equal.description': string;
  'search.operator.date-time-equal.name': string;
  'search.operator.date-time-last.description': string;
  'search.operator.date-time-last.name': string;
  'search.operator.date-time-not-equal.description': string;
  'search.operator.date-time-not-equal.name': string;
  'search.operator.date-time-range.description': string;
  'search.operator.date-time-range.name': string;
  'search.operator.defined.description': string;
  'search.operator.defined.name': string;
  'search.operator.not-defined.description': string;
  'search.operator.not-defined.name': string;
  'search.operator.number-equal.description': string;
  'search.operator.number-equal.name': string;
  'search.operator.number-gt.description': string;
  'search.operator.number-gt.name': string;
  'search.operator.number-gte.description': string;
  'search.operator.number-gte.name': string;
  'search.operator.number-lt.description': string;
  'search.operator.number-lt.name': string;
  'search.operator.number-lte.description': string;
  'search.operator.number-lte.name': string;
  'search.operator.number-not-equal.description': string;
  'search.operator.number-not-equal.name': string;
  'search.operator.number-range.description': string;
  'search.operator.number-range.name': string;
  'search.operator.portable-text-contains.description': string;
  'search.operator.portable-text-contains.name': string;
  'search.operator.portable-text-equal.description': string;
  'search.operator.portable-text-equal.name': string;
  'search.operator.portable-text-not-contains.description': string;
  'search.operator.portable-text-not-contains.name': string;
  'search.operator.portable-text-not-equal.description': string;
  'search.operator.portable-text-not-equal.name': string;
  'search.operator.reference-asset-file.description': string;
  'search.operator.reference-asset-file.name': string;
  'search.operator.reference-asset-image.description': string;
  'search.operator.reference-asset-image.name': string;
  'search.operator.reference-document.description': string;
  'search.operator.reference-document.name': string;
  'search.operator.reference-equal.description': string;
  'search.operator.reference-equal.name': string;
  'search.operator.reference-not-equal.description': string;
  'search.operator.reference-not-equal.name': string;
  'search.operator.slug-contains.description': string;
  'search.operator.slug-contains.name': string;
  'search.operator.slug-equal.description': string;
  'search.operator.slug-equal.name': string;
  'search.operator.slug-not-contains.description': string;
  'search.operator.slug-not-contains.name': string;
  'search.operator.slug-not-equal.description': string;
  'search.operator.slug-not-equal.name': string;
  'search.operator.string-contains.description': string;
  'search.operator.string-contains.name': string;
  'search.operator.string-equal.description': string;
  'search.operator.string-equal.name': string;
  'search.operator.string-list-equal.description': string;
  'search.operator.string-list-equal.name': string;
  'search.operator.string-list-not-equal.description': string;
  'search.operator.string-list-not-equal.name': string;
  'search.operator.string-not-contains.description': string;
  'search.operator.string-not-contains.name': string;
  'search.operator.string-not-equal.description': string;
  'search.operator.string-not-equal.name': string;
  /** Label for the "Best match" search ordering type */
  'search.ordering.best-match-label': string;
  /** Label for the "Created: Oldest first" search ordering type */
  'search.ordering.created-ascending-label': string;
  /** Label for the "Created: Newest first" search ordering type */
  'search.ordering.created-descending-label': string;
  /** Label for the "Updated: Oldest first" search ordering type */
  'search.ordering.updated-ascending-label': string;
  /** Label for the "Updated: Newest first" search ordering type */
  'search.ordering.updated-descending-label': string;
  /** Placeholder text for the global search input field */
  'search.placeholder': string;
  /** Accessibility label for the recent searches section, shown when no valid search terms has been given */
  'search.recent-searches-aria-label': string;
  /** Label/heading shown for the recent searches section */
  'search.recent-searches-label': string;
  /** Accessibility label for the search results section, shown when the user has typed valid terms */
  'search.search-results-aria-label': string;
  /** Accessibility label for the navbar status button */
  'status-button.aria-label': string;
  'time-zone.action.search-for-timezone-placeholder': string;
  'time-zone.action.select-local-time-zone': string;
  'time-zone.dialog-info.content-releases': string;
  'time-zone.dialog-info.input': string;
  'time-zone.dialog-info.scheduled-publishing': string;
  'time-zone.local-time': string;
  'time-zone.time-zone': string;
  'time-zone.time-zone-tooltip-content-releases': string;
  'time-zone.time-zone-tooltip-input': string;
  'time-zone.time-zone-tooltip-scheduled-publishing': string;
  /** Title for the changes tooltip in the history inspector*/
  'timeline.changes.title': string;
  /** Description for error when the timeline for the given document can't be loaded */
  'timeline.error.load-document-changes-description': string;
  /** Title for error when the timeline for the given document can't be loaded */
  'timeline.error.load-document-changes-title': string;
  /** Description for error when the timeline for the given document can't be loaded */
  'timeline.error.load-document-changes-version-description': string;
  /** Title for error when the timeline for the given version document can't be loaded */
  'timeline.error.load-document-changes-version-title': string;
  /** Error description for when the document doesn't have history */
  'timeline.error.no-document-history-description': string;
  /** Error title for when the document doesn't have history */
  'timeline.error.no-document-history-title': string;
  /** Error prompt when revision cannot be loaded */
  'timeline.error.unable-to-load-revision': string;
  /** Label for when the timeline item is the latest in the history */
  'timeline.latest': string;
  /** Label for latest revision for timeline menu dropdown */
  'timeline.latest-revision': string;
  /**
   * Label for latest revision for timeline menu dropdown
   * @deprecated as of `v3.47.0` `timeline.latest-revision` should be used instead. Note: _usage_ of this key is deprecated, but Studios on `< v3.47.0` still require this key to be _defined_
   * */
  'timeline.latest-version': string;
  /** The aria-label for the list of revisions in the timeline */
  'timeline.list.aria-label': string;
  /** Label for loading history */
  'timeline.loading-history': string;
  'timeline.no-previous-events': string;
  /** Label shown in review changes timeline when a document has been created */
  'timeline.operation.created': string;
  /** Label shown in review changes timeline when a document was initially created */
  'timeline.operation.created-initial': string;
  /** Label shown in review changes timeline when a document was initially created, with a timestamp */
  'timeline.operation.created-initial_timestamp': string;
  /** Label shown in review changes timeline when a document has been created, with a timestamp */
  'timeline.operation.created_timestamp': string;
  /** Label shown in review changes timeline when a document has been deleted */
  'timeline.operation.deleted': string;
  /** Label shown in review changes timeline when a document has been deleted, with a timestamp */
  'timeline.operation.deleted_timestamp': string;
  /** Label shown in review changes timeline when a draft document has been created*/
  'timeline.operation.draft-created': string;
  /** Label shown in review changes timeline when a draft document has been created, with a timestamp */
  'timeline.operation.draft-created_timestamp': string;
  /** Label shown in review changes timeline when a draft has been discarded */
  'timeline.operation.draft-discarded': string;
  /** Label shown in review changes timeline when a draft has been discarded, with a timestamp */
  'timeline.operation.draft-discarded_timestamp': string;
  /** Label shown in review changes timeline when a draft has been edited */
  'timeline.operation.edited-draft': string;
  /** Label shown in review changes timeline when a draft has been edited, with a timestamp */
  'timeline.operation.edited-draft_timestamp': string;
  /** Label shown in review changes timeline when a document has been edited live */
  'timeline.operation.edited-live': string;
  /** Label shown in review changes timeline when a document has been edited live, with a timestamp */
  'timeline.operation.edited-live_timestamp': string;
  /** Label shown in review changes timeline event when transactions have been deleted by retention policy */
  'timeline.operation.history-cleared': string;
  /** Label shown in review changes timeline when a document was published */
  'timeline.operation.published': string;
  /** Label shown in review changes timeline when a document was published, with a timestamp */
  'timeline.operation.published_timestamp': string;
  /** Label shown in review changes timeline when a document was unpublished */
  'timeline.operation.unpublished': string;
  /** Label shown in review changes timeline when a document was unpublished, with a timestamp */
  'timeline.operation.unpublished_timestamp': string;
  /** Label shown in review changes timeline when a document version has been created */
  'timeline.operation.version-created': string;
  /** Label shown in review changes timeline when a document version has been created, with a timestamp */
  'timeline.operation.version-created_timestamp': string;
  /** Label shown in review changes timeline when a document version has been discarded */
  'timeline.operation.version-discarded': string;
  /** Label shown in review changes timeline when a document version has been discarded, with a timestamp */
  'timeline.operation.version-discarded_timestamp': string;
  /**
   * Label for determining since which version the changes for timeline menu dropdown are showing.
   * Receives the time label as a parameter (`timestamp`).
   */
  'timeline.since': string;
  /** Label for missing change version for timeline menu dropdown are showing */
  'timeline.since-version-missing': string;
  /** Aria label for the action buttons in the PTE toolbar */
  'toolbar.portable-text.action-button-aria-label': string;
  /** Accessibility label for the breadcrumb menu */
  'tree-editing-dialog.breadcrumbs.menu': string;
  /** Title placeholder for search input in array of objects */
  'tree-editing-dialog.search-placeholder': string;
  /** Menu aria label for the search menu */
  'tree-editing-dialog.search.menu-label': string;
  /** Title label for when no search results are found on the tree of objects */
  'tree-editing-dialog.search.no-results-title': string;
  /** Label to close the sidebar */
  'tree-editing-dialog.sidebar.action.close': string;
  /** Collapse label the menu item in the sidebar  */
  'tree-editing-dialog.sidebar.action.collapse': string;
  /** Label to close the dialog */
  'tree-editing-dialog.sidebar.action.done': string;
  /** Exapnd label the menu item in the sidebar  */
  'tree-editing-dialog.sidebar.action.expand': string;
  /** Label to open the sidebar */
  'tree-editing-dialog.sidebar.action.open': string;
  /** Label for action to claim a project created through unauthenticated provisioning */
  'user-menu.action.claim-project': string;
  /** Label for the button showed after trial ended */
  'user-menu.action.free-trial-finished': string;
  /** Label for button showing the free trial days left */
  'user-menu.action.free-trial_one': string;
  'user-menu.action.free-trial_other': string;
  /** Label for action to invite members to the current sanity project */
  'user-menu.action.invite-members': string;
  /** Accessibility label for action to invite members to the current sanity project */
  'user-menu.action.invite-members-aria-label': string;
  /** Label for action to manage the current sanity project */
  'user-menu.action.manage-project': string;
  /** Accessibility label for the action to manage the current project */
  'user-menu.action.manage-project-aria-label': string;
  /** Tooltip helper text when portable text annotation is disabled for empty block*/
  'user-menu.action.portable-text.annotation-disabled_empty-block': string;
  /** Tooltip helper text when portable text annotation is disabled for multiple blocks */
  'user-menu.action.portable-text.annotation-disabled_multiple-blocks': string;
  /** Label for action to sign out of the current sanity project */
  'user-menu.action.sign-out': string;
  /** Title for appearance section for the current studio (dark / light / system scheme) */
  'user-menu.appearance-title': string;
  /** Label for close menu button for user menu */
  'user-menu.close-menu': string;
  /** Description for using the "dark theme" in the appearance user menu */
  'user-menu.color-scheme.dark-description': string;
  /** Title for using the "dark theme" in the appearance user menu */
  'user-menu.color-scheme.dark-title': string;
  /** Description for using the "light theme" in the appearance user menu */
  'user-menu.color-scheme.light-description': string;
  /** Title for using the "light theme" in the appearance user menu */
  'user-menu.color-scheme.light-title': string;
  /** Description for using "system apparence" in the appearance user menu */
  'user-menu.color-scheme.system-description': string;
  /** Title for using system apparence in the appearance user menu */
  'user-menu.color-scheme.system-title': string;
  /** Title for locale section for the current studio */
  'user-menu.locale-title': string;
  /** Label for tooltip to show which provider the currently logged in user is using */
  'user-menu.login-provider': string;
  /** Label for open menu button for user menu */
  'user-menu.open-menu': string;
  /** Label for other users' agent bundle versions */
  'version.agent-bundle.agent-changes': string;
  /** Label for the current user's agent bundle versions */
  'version.agent-bundle.proposed-changes': string;
  /**
   * Label for action to add a workspace (currently a developer-oriented action, as this will
   * lead to the documentation on workspace configuration)
   */
  'workspaces.action.add-workspace': string;
  /**
   * Label for action to choose a different workspace, in the case where you are not logged in,
   * have selected a workspace, and are faced with the authentication options for the selected
   * workspace. In other words, label for the action shown when you have reconsidered which
   * workspace to authenticate in.
   */
  'workspaces.action.choose-another-workspace': string;
  /** Label for title to switch workspace before workspaces are listed */
  'workspaces.action.switch-workspace': string;
  /** Label for heading that indicates that you can choose your workspace */
  'workspaces.choose-your-workspace-label': string;
  /** Label for the workspace menu */
  'workspaces.select-workspace-aria-label': string;
  /** Button label for opening the workspace switcher */
  'workspaces.select-workspace-label': string;
  /** Tooltip for the workspace menu */
  'workspaces.select-workspace-tooltip': string;
  /** Title for Workplaces dropdown menu */
  'workspaces.title': string;
};
/**
 * The i18n resource keys for the studio.
 *
 * @alpha
 * @hidden
 */
type StudioLocaleResourceKeys = keyof typeof studioLocaleStrings;
/** @internal */
interface FieldValueError {
  /**
   * i18n key for the error message
   */
  messageKey: StudioLocaleResourceKeys;
  /**
   * The expected type of the value
   */
  expectedType: string;
  /**
   * The actual type of the value
   */
  actualType: string;
  /**
   * The actual value of the field
   */
  value: unknown;
}
/** @internal */
declare function getValueError(value: unknown, schemaType: SchemaType): FieldValueError | undefined;
/**
 * History timeline / chunking
 *
 *
 * @hidden
 * @beta
 */
type ChunkType = 'initial' | 'create' | 'editDraft' | 'delete' | 'publish' | 'unpublish' | 'discardDraft' | 'editLive';
/**
 * @hidden
 * @beta */
type Chunk = {
  index: number;
  id: string;
  type: ChunkType;
  start: number;
  end: number;
  startTimestamp: string;
  endTimestamp: string;
  authors: Set<string>;
  draftState: 'present' | 'missing' | 'unknown';
  publishedState: 'present' | 'missing' | 'unknown';
};
/**
 * Annotation connected to a change
 *
 *
 * @hidden
 * @beta
 */
type AnnotationDetails = {
  event?: DocumentGroupEvent;
  timestamp: string;
  author: string;
};
/**
 * @hidden
 * @beta */
type Annotation = AnnotationDetails | null;
/** @internal */
type ArrayDiff$1<V = unknown> = ArrayDiff<Annotation, V>;
/** @internal */
type BooleanDiff$1 = BooleanDiff<Annotation>;
/** @internal */
type NullDiff$1 = NullDiff<Annotation>;
/** @internal */
type NumberDiff$1 = NumberDiff<Annotation>;
/** @internal */
type ObjectDiff$1<T extends object = Record<string, any>> = ObjectDiff<Annotation, T>;
/** @internal */
type StringDiff$1 = StringDiff<Annotation>;
/** @internal */
type ReferenceDiff = ObjectDiff$1<Reference>;
/** @internal */
type TypeChangeDiff$1 = TypeChangeDiff<Annotation>;
/** @internal */
type Diff$1<A = unknown, O extends object = Record<string, any>> = ArrayDiff$1<A> | BooleanDiff$1 | NullDiff$1 | NumberDiff$1 | ObjectDiff$1<O> | StringDiff$1 | TypeChangeDiff$1;
/** @internal */
type StringDiffSegment = StringSegmentChanged$1 | StringSegmentUnchanged$1;
/** @internal */
type StringSegmentChanged$1 = StringSegmentChanged<Annotation>;
/** @internal */
type StringSegmentUnchanged$1 = StringSegmentUnchanged;
/** @internal */
type ItemDiff$1 = ItemDiff<Annotation>;
/**
 * Diff extensions for presentational concerns
 *
 * @internal
 */
interface ArrayItemMetadata {
  fromType?: SchemaType;
  toType?: SchemaType;
}
/**
 * Diff components
 *
 * @internal
 */
type DiffComponent<T extends Diff$1 = Diff$1> = ComponentType<DiffProps<T>>;
/** @internal */
type DiffComponentOptions<T extends Diff$1 = Diff$1> = {
  component: DiffComponent<T>;
  showHeader?: boolean;
};
/** @internal */
type DiffProps<T extends Diff$1 = Diff$1> = {
  diff: T;
  schemaType: T extends ObjectDiff$1 ? ObjectSchemaType : T extends ArrayDiff$1 ? ArraySchemaType : T extends BooleanDiff$1 ? BooleanSchemaType : T extends StringDiff$1 ? StringSchemaType : T extends NumberDiff$1 ? NumberSchemaType : SchemaType;
};
/**
 * Resolvers
 *
 * @internal
 */
type DiffComponentResolver = (options: {
  schemaType: SchemaType;
  parentSchemaType?: ArraySchemaType | ObjectSchemaType;
}) => ComponentType<any> | DiffComponentOptions<any> | undefined;
/**
 * Schema
 */
/**
 * "Changes" (presentation-oriented grouping of diffs)
 *
 * @internal
 */
interface GroupChangeNode {
  type: 'group';
  changes: ChangeNode[];
  key: string;
  path: Path;
  titlePath: ChangeTitlePath;
  schemaType?: SchemaType;
  readOnly?: ConditionalProperty;
  hidden?: ConditionalProperty;
  fieldsetName?: string;
}
/** @internal */
interface FieldChangeNode {
  type: 'field';
  diff: Diff$1;
  itemDiff?: ItemDiff$1;
  parentDiff?: ObjectDiff$1 | ArrayDiff$1;
  key: string;
  path: Path;
  error?: FieldValueError;
  titlePath: ChangeTitlePath;
  schemaType: ObjectFieldType;
  showHeader: boolean;
  showIndex: boolean;
  diffComponent?: DiffComponent;
  parentSchema?: ArraySchemaType | ObjectSchemaType;
  readOnly?: ConditionalProperty;
  hidden?: ConditionalProperty;
}
/** @internal */
type ChangeNode = GroupChangeNode | FieldChangeNode;
/** @internal */
interface FromToIndex {
  hasMoved: boolean;
  fromIndex?: number;
  toIndex?: number;
  annotation?: Annotation;
}
/** @internal */
type ChangeTitlePath = (string | FromToIndex)[];
/** @internal */
interface FieldOperationsAPI {
  patch: {
    execute: (patches: PatchOperations[]) => void;
  };
}
/**
 * Represents "commit requests" from the mutator.
 * These are emitted from the BufferedDocument instance's `requestHandler` callback
 *
 * @internal
 */
interface CommitRequest {
  mutation: Mutation;
  success: () => void;
  failure: (error: Error) => void;
  cancel: (error: Error) => void;
  /** Timestamp (Date.now()) when the first local mutation in this commit batch was received */
  firstMutationReceivedAt?: number;
}
/** @internal */
declare const createObservableBufferedDocument: (listenerEvent$: Observable<ListenerEvent>) => {
  updates$: Observable<DocumentMutationEvent | DocumentRebaseEvent | SnapshotEvent>;
  consistency$: Observable<boolean>;
  remoteSnapshot$: Observable<RemoteSnapshotEvent>;
  commitRequest$: Subject<CommitRequest>;
  addMutation: (mutation: MutationPayload) => void;
  addMutations: (mutations: MutationPayload[]) => void;
  commit: () => void;
};
/**
 * @hidden
 * @beta */
type BufferedDocumentEvent = SnapshotEvent | DocumentRebaseEvent | DocumentMutationEvent | CommittedEvent;
/** @internal */
interface BufferedDocumentWrapper {
  consistency$: Observable<boolean>;
  remoteSnapshot$: Observable<RemoteSnapshotEvent>;
  events: Observable<BufferedDocumentEvent>;
  commitRequest$: Observable<CommitRequest>;
  patch: (patches: any[]) => MutationPayload[];
  create: (document: Partial<SanityDocument>) => MutationPayload;
  createIfNotExists: (document: SanityDocument) => MutationPayload;
  createOrReplace: (document: SanityDocument) => MutationPayload;
  delete: () => MutationPayload;
  mutate: (mutations: MutationPayload[]) => void;
  commit: () => void;
}
/** @internal */
declare const createBufferedDocument: (documentId: string, listenerEvent$: Observable<ListenerEvent>) => BufferedDocumentWrapper;
/**
 * @hidden
 * @beta */
type WithVersion<T> = T & {
  version: DocumentVariantType;
};
/**
 * @hidden
 * @beta */
type DocumentVersionEvent = WithVersion<ReconnectEvent | BufferedDocumentEvent | WelcomeEvent | WelcomeBackEvent | ResetEvent>;
/**
 * @hidden
 * @beta */
type RemoteSnapshotVersionEvent = WithVersion<RemoteSnapshotEvent>;
/**
 * @hidden
 * @beta
 * The SingleMutationResult type from `@sanity/client` doesn't reflect what we get back from POST /mutate
 */
type MutationResult = Omit<SingleMutationResult, 'documentId'>;
/**
 * @hidden
 * @beta */
interface DocumentVersion {
  consistency$: Observable<boolean>;
  remoteSnapshot$: Observable<RemoteSnapshotVersionEvent>;
  events: Observable<DocumentVersionEvent>;
  patch: (patches: any[]) => MutationPayload[];
  create: (document: Partial<SanityDocument>) => MutationPayload;
  createIfNotExists: (document: SanityDocument) => MutationPayload;
  createOrReplace: (document: SanityDocument) => MutationPayload;
  delete: () => MutationPayload;
  mutate: (mutations: MutationPayload[]) => void;
  commit: () => void;
}
/**
 * The error thrown by the most recent failed commit attempt. Wrapped in an
 * object (rather than emitted raw) because a commit can reject with any
 * thrown value — including `undefined`, which would otherwise be
 * indistinguishable from the healthy state.
 *
 * @internal
 */
type CommitError = {
  error: unknown;
};
/**
 * @hidden
 * @beta */
type Pair = {
  /** @internal */
  transactionsPendingEvents$: Observable<PendingMutationsEvent>;
  /**
   * The error from the most recent commit attempt while it failed and is
   * being retried by the mutator, or `undefined` while commits are healthy.
   * Resets to `undefined` on the next successful (or terminally cancelled)
   * commit, and when the pair returns to a consistent state — i.e. the
   * buffered edits the failure was about no longer exist. Distinguishes
   * "commits are failing" from "the backlog is merely slow" — see
   * `useDocumentSyncState`.
   * @internal
   */
  commitError$: Observable<CommitError | undefined>;
  published: DocumentVersion;
  draft: DocumentVersion;
  version?: DocumentVersion;
};
/** @internal */
declare function checkoutPair(client: SanityClient, idPair: IdPair,
/**
 * @deprecated does nothing Preserved to avoid breaking changes
 * Will be removed in the next major version.
 */
_serverActionsEnabled: Observable<boolean> | undefined, options?: DocumentStoreExtraOptions): Pair;
/**
 * @deprecated Use the events API instead. The legacy document timeline will be removed in the next major version.
 * @hidden
 * @beta */
type DocumentRemoteMutationVersionEvent = Exclude<RemoteSnapshotVersionEvent, {
  type: 'snapshot';
}>;
/**
 * @deprecated Use the events API instead. The legacy document timeline will be removed in the next major version.
 * @hidden
 * @beta */
interface CombinedDocument {
  draft: Record<string, unknown> | null;
  published: Record<string, unknown> | null;
}
/**
 * @deprecated Use the events API instead. The legacy document timeline will be removed in the next major version.
 * @hidden
 * @beta */
interface Transaction {
  index: number;
  id: string;
  author: string;
  timestamp: string;
  draftEffect?: MendozaEffectPair;
  publishedEffect?: MendozaEffectPair;
}
/**
 * @deprecated Use the events API instead. The legacy document timeline will be removed in the next major version.
 * @hidden
 * @beta */
type ParsedTimeRef = Chunk | 'loading' | 'invalid';
/**
 * @deprecated Use the events API instead. The legacy document timeline will be removed in the next major version.
 * @hidden
 * @beta */
interface TimelineOptions {
  publishedId: string;
  enableTrace?: boolean;
}
/**
 * Timeline maintains information about the history of a document:
 * Grouping raw translog entries into sensible groups, replaying and
 * reconstructing different versions and abstract other details.
 *
 * Note that this class by itself is not capable of _fetching_ information,
 * but will only organize and structure the incoming translog entries.
 *
 *
 * @deprecated Use the events API instead. The legacy document timeline will be removed in the next major version.
 * @hidden
 * @beta
 */
declare class Timeline {
  reachedEarliestEntry: boolean;
  publishedId: string;
  draftId: string;
  private _transactions;
  private _chunks;
  private _possiblePendingTransactions;
  private _recreateTransactionsFrom?;
  private _trace?;
  constructor(opts: TimelineOptions);
  get chunkCount(): number;
  /** Maps over the chunk from newest to oldest. */
  mapChunks<T>(mapper: (chunk: Chunk, idx: number) => T): T[];
  reset(): void;
  /**
   * Adds a remote mutation to the timeline. This methods assumes that the remote mutations
   * come in correct order for their respective version, but has no ordering requirements
   * across draft/published.
   *
   * Example: [D1, D2, P1] (where D1 and P1 were mutations done to the draft and published
   * version in the same transaction) is a valid input. [P1, D2, D1] is _not_ valid since
   * the mutation for the draft is out of order.
   */
  addRemoteMutation(entry: DocumentRemoteMutationVersionEvent): void;
  addTranslogEntry(event: TransactionLogEventWithEffects): void;
  /** Mark that we've reached the earliest entry. */
  didReachEarliestEntry(): void;
  /**
   * updateChunks synchronizes the chunks to match the current state
   * of the transactions array. After calling this method you need
   * to invalidate all Chunks.
   */
  updateChunks(): void;
  private _removeInvalidatedChunks;
  private _addChunksFromTransactions;
  private _invalidateTransactionFrom;
  private _createInitialChunk;
  /**
   * Resolves a time reference.
   *
   * Note that the chunk returned is only valid if the timeline stays constant.
   * Once the timeline is updated, you must re-parse all references.
   */
  parseTimeId(id: string): ParsedTimeRef;
  findLastPublishedBefore(chunk: Chunk | null): ParsedTimeRef;
  isLatestChunk(chunk: Chunk): boolean;
  createTimeId(chunk: Chunk): string;
  lastChunk(): Chunk;
  transactionByIndex(idx: number): Transaction | null;
  chunkByTransactionIndex(idx: number, startChunkIdx?: number): Chunk;
  replayBackwardsBetween(firstIdx: number, lastIdx: number, doc: CombinedDocument): CombinedDocument;
  replayBackwardsUntil(firstIdx: number, doc: CombinedDocument): CombinedDocument;
  calculateDiff(initialDoc: CombinedDocument, finalDoc: CombinedDocument, firstIdx: number, lastIdx: number): Diff<Annotation>;
}
/**
 * @deprecated Use the events API instead. The legacy document timeline will be removed in the next major version.
 * @hidden
 * @beta */
type TimelineControllerOptions = {
  timeline: Timeline;
  client: SanityClient;
  documentId: string;
  documentType: string;
  handler?: (err: Error | null, controller: TimelineController) => void;
};
/**
 * @deprecated Use the events API instead. The legacy document timeline will be removed in the next major version.
 * @hidden
 * @beta */
type SelectionState = 'inactive' | 'rev' | 'range' | 'loading' | 'invalid';
/**
 * The controller is responsible for fetching information
 * about a document and maintaining a Timeline.
 *
 *
 * @deprecated Use the events API instead. The legacy document timeline will be removed in the next major version.
 * @hidden
 * @beta
 */
declare class TimelineController {
  timeline: Timeline;
  client: SanityClient;
  handler: TimelineControllerOptions['handler'];
  version: number;
  /**
   * The selection state represents the  different states of the current selection:
   * - inactive: No selection is active.
   * - rev: A selection is active for a single revision.
   * - range: A selection is active for a range and we have all the data needed to render it.
   * - loading: A selection is active, but we don't have the entries yet.
   * - invalid: The selection picked is invalid.
   */
  selectionState: SelectionState;
  constructor(options: TimelineControllerOptions);
  private _aligner;
  private _fetchMore;
  private _fetchAtLeast;
  private _isRunning;
  private _isSuspended;
  private _didErr;
  private _since;
  private _sinceTime;
  private _rev;
  private _revTime;
  private _reconstruction?;
  setHandler(handler: TimelineControllerOptions['handler']): void;
  clearRange(): void;
  setRange(since: string | null, rev: string | null): void;
  setLoadMore(flag: boolean): void;
  get sinceTime(): Chunk | null;
  get revTime(): Chunk | null;
  get isLoading(): boolean;
  get realRevChunk(): Chunk;
  /** Returns true when there's an older revision we want to render. */
  onOlderRevision(): boolean;
  findRangeForNewRev(rev: Chunk): [string | null, string | null];
  findRangeForNewSince(since: Chunk): [string, string | null];
  setRevTime(rev: string | null): void;
  setSinceTime(since: string | null): void;
  sinceAttributes(): Record<string, unknown> | null;
  displayed(): Record<string, unknown> | null;
  setReconstruction(since: Chunk | null, rev: Chunk): void;
  currentDiff(): Diff<Annotation> | null;
  currentObjectDiff(): ObjectDiff<Annotation> | null;
  handleRemoteMutation(ev: RemoteSnapshotVersionEvent): void;
  start(): void;
  resume(): void;
  suspend(): void;
  private tick;
  private fetchMoreTransactions;
  private markChange;
}
/**
 * Represents a document revision identifier.
 * Can be either a specific revision string
 * or 'lastRevision' to get the most recent revision.
 *
 * @beta
 */
type DocumentRevision = string | 'lastRevision';
/**
 * @hidden
 * @beta */
interface HistoryStore {
  getDocumentAtRevision: (documentId: string, revision: DocumentRevision) => Promise<SanityDocument | undefined>;
  getHistory: (documentIds: string[], options?: {
    time?: string;
    revision?: string;
  }) => Promise<{
    documents: SanityDocument[];
  }>;
  getTransactions: (documentIds: string[]) => Promise<TransactionLogEventWithMutations[]>;
  restore: (id: string, targetId: string, rev: DocumentRevision, options?: RestoreOptions) => Observable<void>;
  /**
   * @deprecated Use the events API instead. The legacy document timeline will be removed in the next major version.
   * @internal
   */
  getTimelineController: (options: {
    client: SanityClient;
    documentId: string;
    documentType: string;
  }) => TimelineController;
}
interface RestoreOptions {
  fromDeleted: boolean;
  useServerDocumentActions?: boolean;
  /**
   * Set when the target is a variant-scoped version. Variant version ids share the
   * `versions.<scope>.<id>` shape with release versions, so the caller derives this from the
   * version snapshot's `_system` (see `getVariantVersionInfo`). Variant documents keep the raw-id
   * draft actions; the `document.version.*` actions are for release versions only.
   */
  variant?: VariantVersionInfo;
}
/** @internal */
declare const removeMissingReferences: (doc: SanityDocument, existingIds: Record<string, boolean | undefined>) => SanityDocument;
/** @internal */
interface HistoryStoreOptions {
  client: SanityClient;
}
/** @internal */
declare function createHistoryStore({ client }: HistoryStoreOptions): HistoryStore;
/** @internal */
interface DocumentVersionSnapshots {
  snapshots$: Observable<SanityDocument>;
  patch: (patches: any[]) => MutationPayload[];
  create: (document: any) => MutationPayload;
  createIfNotExists: (document: any) => MutationPayload;
  createOrReplace: (document: any) => MutationPayload;
  delete: () => MutationPayload;
  mutate: (mutations: MutationPayload[]) => void;
  commit: () => void;
}
/** @internal */
interface SnapshotPair {
  transactionsPendingEvents$: Observable<PendingMutationsEvent>;
  draft: DocumentVersionSnapshots;
  published: DocumentVersionSnapshots;
  version?: DocumentVersionSnapshots;
}
/** @internal */
declare const snapshotPair: (client: SanityClient, idPair: IdPair, typeName: string, _serverActionsEnabled?: Observable<boolean>, pairListenerOptions?: DocumentStoreExtraOptions) => Observable<SnapshotPair>;
/** @public */
type MapDocument = (document: SanityDocumentLike) => SanityDocumentLike;
/** @internal */
interface OperationImpl<ExtraArgs extends any[] = [], DisabledReason extends string = string> {
  disabled: (args: OperationArgs) => DisabledReason | 'NOT_READY' | false;
  execute(args: OperationArgs, ...extra: ExtraArgs): void;
}
/** @internal */
interface Operation<ExtraArgs extends any[] = [], ErrorStrings extends string = string> {
  disabled: false | ErrorStrings | 'NOT_READY';
  execute(...extra: ExtraArgs): void;
}
type GuardedOperation = Operation<any[], 'NOT_READY'>;
type Patch$1 = any;
/** @internal */
interface OperationsAPI {
  commit: Operation | GuardedOperation;
  delete: Operation<[versions?: string[]], 'NOTHING_TO_DELETE' | 'NOT_READY' | 'TARGET_NOT_FOUND'>;
  del: Operation<[versions?: string[]], 'NOTHING_TO_DELETE' | 'TARGET_NOT_FOUND'> | GuardedOperation;
  publish: Operation<[options?: PublishOptions], 'LIVE_EDIT_ENABLED' | 'ALREADY_PUBLISHED' | 'NO_CHANGES' | 'NOT_PUBLISHABLE' | 'TARGET_NOT_FOUND'> | GuardedOperation;
  patch: Operation<[patches: Patch$1[], initialDocument?: Record<string, any>]> | GuardedOperation;
  discardChanges: Operation<[], 'NO_CHANGES' | 'NOT_PUBLISHED' | 'TARGET_NOT_FOUND'> | GuardedOperation;
  unpublish: Operation<[], 'LIVE_EDIT_ENABLED' | 'NOT_PUBLISHED' | 'ALREADY_UNPUBLISHED' | 'TARGET_NOT_FOUND'> | GuardedOperation;
  duplicate: Operation<[documentId: string, options?: {
    mapDocument?: MapDocument;
  }], 'NOTHING_TO_DUPLICATE' | 'TARGET_NOT_FOUND'> | GuardedOperation;
  restore: Operation<[revision: DocumentRevision]> | GuardedOperation;
}
/**
 * Extra options for `publish.execute`.
 *
 * Maps to the action-specific optimistic lock field:
 * - variant publish → `ifPublishedVariantRevisionId`
 * - base publish → `ifPublishedRevisionId` (falls back to `snapshots.published._rev`
 *   when omitted)
 *
 * Variant publish locks cannot read the variant-of-published revision from pair
 * snapshots (that sibling is not in any slot). Callers that have
 * `publishedSibling` (e.g. PublishAction) pass its `_rev` here. Base draft
 * publish should omit this and keep using the published snapshot.
 *
 * @internal
 */
interface PublishOptions {
  /** Revision of the published target to optimistic-lock against. */
  publishedRevisionId?: string;
}
/** @internal */
interface OperationArgs {
  historyStore: HistoryStore;
  client: SanityClient;
  schema: Schema;
  typeName: string;
  idPair: IdPair;
  snapshots: {
    draft: null | SanityDocument;
    published: null | SanityDocument;
    version?: null | SanityDocument;
  };
  draft: DocumentVersionSnapshots;
  published: DocumentVersionSnapshots;
  version?: DocumentVersionSnapshots;
  /**
   * The pair target as declared by the caller (see {@link DocumentPairTarget}). Only present when
   * the caller passed a structured target; bare version-name strings and base-pair checkouts leave
   * it unset. The self-derived missing-version guard reads `allowCreate` from it.
   */
  target?: DocumentPairTarget;
  /**
   * @deprecated it's always true. Preserved to avoid breaking changes
   * Will be removed in the next major version.
   */
  serverActionsEnabled: boolean;
}
/**
 * Portable text preview layout key
 *
 * @public
 */
type PortableTextPreviewLayoutKey = 'block' | 'blockImage' | 'inline';
/**
 * General preview layout key
 *
 * @public
 */
type GeneralPreviewLayoutKey = 'compact' | 'default' | 'media' | 'detail';
/**
 * General Document list layout key
 *
 * @hidden
 * @beta
 */
type GeneralDocumentListLayoutKey = GeneralPreviewLayoutKey;
/**
 * Preview layout key. See also {@link GeneralPreviewLayoutKey} and {@link PortableTextPreviewLayoutKey}
 *
 * @public
 */
type PreviewLayoutKey = GeneralPreviewLayoutKey | PortableTextPreviewLayoutKey;
/**
 * @hidden
 * @public
 */
interface PreviewMediaDimensions {
  aspect?: number;
  dpr?: number;
  fit?: ImageUrlFitMode;
  height?: number;
  width?: number;
}
/**
 * @hidden
 * @beta
 */
interface PreviewProps<TLayoutKey = PreviewLayoutKey> {
  actions?: ReactNode | ComponentType<{
    layout: TLayoutKey;
  }>;
  children?: ReactNode;
  description?: ReactNode | ComponentType<{
    layout: TLayoutKey;
  }>;
  error?: Error | null;
  fallbackTitle?: ReactNode;
  imageUrl?: string;
  isPlaceholder?: boolean;
  layout?: TLayoutKey;
  media?: ReactNode | SanityImageSource | ComponentType<{
    dimensions: PreviewMediaDimensions;
    layout: TLayoutKey;
  }>;
  mediaDimensions?: PreviewMediaDimensions;
  progress?: number;
  status?: ReactNode | ComponentType<{
    layout: TLayoutKey;
  }>;
  subtitle?: ReactNode | ComponentType<{
    layout: TLayoutKey;
  }>;
  title?: ReactNode | ComponentType<{
    layout: TLayoutKey;
  }>;
  withBorder?: boolean;
  withRadius?: boolean;
  withShadow?: boolean;
  schemaType?: SchemaType;
  renderDefault: (props: PreviewProps) => React.JSX.Element;
}
/**
 * @hidden
 * @beta
 */
type PreviewComponent = ComponentType<PreviewProps>;
/**
 * @hidden
 * @beta */
interface FormPatchBase {
  /**
   * A property used to identify this as a Sanity patch type, eg "set", "unset", "insert", etc.
   * This allows us to potentially introduce new patch types in the future without breaking
   * existing code. This is an internal property/implementation detail and should not be used by
   * consumers.
   *
   * @internal
   */
  patchType: symbol;
}
/**
 *
 * @hidden
 * @beta
 */
type FormPatchJSONValue = number | string | boolean | {
  [key: string]: FormPatchJSONValue;
} | FormPatchJSONValue[];
/**
 *
 * @hidden
 * @beta
 */
type FormPatchOrigin = 'remote' | 'local' | 'internal';
/**
 *
 * @hidden
 * @beta
 */
interface FormSetPatch extends FormPatchBase {
  path: Path;
  type: 'set';
  origin?: FormPatchOrigin;
  value: FormPatchJSONValue;
}
/**
 *
 * @hidden
 * @beta
 */
interface FormIncPatch extends FormPatchBase {
  path: Path;
  type: 'inc';
  origin?: FormPatchOrigin;
  value: FormPatchJSONValue;
}
/**
 *
 * @hidden
 * @beta
 */
interface FormDecPatch extends FormPatchBase {
  path: Path;
  type: 'dec';
  origin?: FormPatchOrigin;
  value: FormPatchJSONValue;
}
/**
 *
 * @hidden
 * @beta
 */
interface FormSetIfMissingPatch extends FormPatchBase {
  path: Path;
  origin?: FormPatchOrigin;
  type: 'setIfMissing';
  value: FormPatchJSONValue;
}
/**
 *
 * @hidden
 * @beta
 */
interface FormUnsetPatch extends FormPatchBase {
  path: Path;
  origin?: FormPatchOrigin;
  type: 'unset';
}
/**
 *
 * @hidden
 * @beta
 */
type FormInsertPatchPosition = 'before' | 'after';
/**
 *
 * @hidden
 * @beta
 */
interface FormInsertPatch extends FormPatchBase {
  path: Path;
  origin?: FormPatchOrigin;
  type: 'insert';
  position: FormInsertPatchPosition;
  items: FormPatchJSONValue[];
}
/**
 *
 * @hidden
 * @beta
 */
interface FormDiffMatchPatch extends FormPatchBase {
  path: Path;
  type: 'diffMatchPatch';
  origin?: FormPatchOrigin;
  value: string;
}
/**
 *
 * @hidden
 * @beta
 */
type FormPatch = FormSetPatch | FormSetIfMissingPatch | FormUnsetPatch | FormInsertPatch | FormDiffMatchPatch;
/**
 *
 * @hidden
 * @beta
 */
type PatchArg = FormPatch | FormPatch[];
/**
 *
 * @hidden
 * @beta
 */
declare class PatchEvent {
  static from(input: PatchArg | PatchEvent): PatchEvent;
  patches: Array<FormPatch>;
  constructor(patches: Array<FormPatch>);
  prepend(...patches: PatchArg[]): PatchEvent;
  append(...patches: PatchArg[]): PatchEvent;
  prefixAll(segment: PathSegment): PatchEvent;
}
/**
 * @hidden
 * @beta */
interface DocumentFieldAction {
  name: string;
  useAction: DocumentFieldActionHook;
}
/**
 * @hidden
 * @beta */
interface DocumentFieldActionHook {
  (props: DocumentFieldActionProps): DocumentFieldActionItem | DocumentFieldActionGroup;
}
/**
 * @hidden
 * @beta */
interface DocumentFieldActionProps {
  /**
   * The published id of the document being edited. Draft (`drafts.`) and release
   * (`versions.<releaseId>.`) prefixes are stripped, so this does not identify the
   * document revision currently shown in the editor.
   */
  documentId: string;
  documentType: string;
  path: Path;
  schemaType: SchemaType;
}
/**
 * @hidden
 * @beta */
type DocumentFieldActionStatus = 'info' | 'success' | 'warning' | 'error';
/**
 * @hidden
 * @beta */
type DocumentFieldActionTone = 'primary' | 'positive' | 'caution' | 'critical';
/**
 * @hidden
 * @beta */
interface DocumentFieldActionItem {
  type: 'action';
  disabled?: boolean | {
    reason: ReactNode;
  };
  hidden?: boolean;
  icon?: ComponentType;
  iconRight?: ComponentType;
  onAction: () => void;
  renderAsButton?: boolean;
  selected?: boolean;
  status?: DocumentFieldActionStatus;
  title: string;
  i18n?: I18nTextRecord<'title'>;
  tone?: DocumentFieldActionTone;
}
/**
 * @hidden
 * @beta */
interface DocumentFieldActionDivider {
  type: 'divider';
}
/**
 * @hidden
 * @beta */
interface DocumentFieldActionGroup {
  type: 'group';
  children: DocumentFieldActionNode[];
  disabled?: boolean | {
    reason: ReactNode;
  };
  expanded?: boolean;
  hidden?: boolean;
  icon?: ComponentType;
  renderAsButton?: boolean;
  status?: DocumentFieldActionStatus;
  title: string;
  i18n?: I18nTextRecord<'title'>;
  tone?: DocumentFieldActionTone;
}
/**
 * @hidden
 * @beta */
type DocumentFieldActionNode = DocumentFieldActionItem | DocumentFieldActionGroup | DocumentFieldActionDivider;
/**
 * @hidden
 * @beta */
interface DocumentFieldActionsResolverContext extends ConfigContext {
  documentId: string;
  documentType: string;
  schemaType: SchemaType;
  /**
   * The singleton definition id.
   */
  singleton?: string;
}
/**
 * @hidden
 * @beta */
type DocumentFieldActionsResolver = ComposableOption<DocumentFieldAction[], DocumentFieldActionsResolverContext>;
/** @internal */
type Status = 'online' | 'editing' | 'inactive';
/** @internal */
interface Session {
  sessionId: string;
  userId: string;
  lastActiveAt: string;
  locations: PresenceLocation[];
}
/** @internal */
interface PresenceLocation {
  type: 'document';
  documentId: string;
  lastActiveAt: string;
  path: Path;
  selection?: EditorSelection;
}
/** @internal */
interface UserSessionPair {
  user: User;
  session: Session;
}
/** @internal */
interface DocumentPresence {
  user: User;
  path: Path;
  sessionId: string;
  /**
   * this is the specific id of the document that the user is in
   * e.g. if the user is in the draft, this will be the draft id, if the user is in a version, it will be the version id
   * */
  documentId?: string;
  lastActiveAt: string;
}
/** @internal */
type GlobalPresence = {
  user: User;
  status: Status;
  lastActiveAt: string;
  locations: PresenceLocation[];
};
/** @internal */
type Position = 'top' | 'bottom' | 'inside' | null;
/** @internal */
type Size = 'xsmall' | 'small' | 'medium';
/** @internal */
type ReportedRegionWithRect<T> = T & {
  id: string;
  rect: Rect;
  /**
   * Set when the reported element is scrolled out of its `clipElement`: `rect` is then the spot
   * at the top or bottom edge of the clip element where the presence is shown instead.
   */
  clampedTo?: 'top' | 'bottom';
};
/** @internal */
type RegionWithIntersectionDetails = {
  distanceTop: number;
  distanceBottom: number;
  position: 'top' | 'bottom' | 'inside';
  region: ReportedRegionWithRect<FieldPresenceData>;
};
/** @internal */
type FieldPresenceData = {
  element: HTMLElement | null;
  presence: FormNodePresence[];
  maxAvatars: number;
  /**
   * The presence is already rendered inline at `element` (e.g. a Portable Text cursor),
   * so the overlay only renders it when the element is out of view.
   */
  inline?: boolean;
  /**
   * A scroll container between `element` and the overlay that can hide `element` (e.g. the
   * Portable Text editor's scroller). When `element` is scrolled out of it, the presence is shown
   * at the top or bottom edge of this element instead.
   */
  clipElement?: HTMLElement | null;
};
/** @internal */
type PresentUser = {
  user: User;
  status?: Status;
  sessions?: Session[];
};
/** @internal */
interface Location {
  documentId: string;
  path: Path;
}
/**
 * @hidden
 * @public */
interface FormNodePresence {
  user: User;
  path: Path;
  sessionId: string;
  lastActiveAt: string;
  selection?: EditorSelection;
}
/** @internal */
interface Rect {
  height: number;
  width: number;
  top: number;
  left: number;
}
/**
 * @hidden
 * @beta */
interface FormFieldGroup {
  name: string;
  selected?: boolean;
  disabled?: boolean;
  title?: string;
  i18n?: I18nTextRecord<'title'>;
  icon?: ComponentType;
  fields: ObjectField[];
}
/**
 *
 * Checks if the document ID `documentId` has the same ID as `equalsDocumentId`,
 * ignoring the draft prefix.
 *
 * @public
 *
 * @param documentId - The document ID to check
 * @param equalsDocumentId - The document ID to check against
 *
 * @example
 * Draft vs published document ID, but representing the same document:
 * ```
 * // Prints "true":
 * console.log(documentIdEquals('drafts.agot', 'agot'));
 * ```
 * @example
 * Different documents:
 * ```
 * // Prints "false":
 * console.log(documentIdEquals('hp-tcos', 'hp-hbp'));
 * ```
 *
 * @returns `true` if the document IDs are equal, `false` otherwise
 */
declare function documentIdEquals(documentId: string, equalsDocumentId: string): boolean;
/** @internal */
declare function isDraft(document: SanityDocumentLike): boolean;
/**
 * TODO: Improve return type based on presence of `version` option.
 *
 * @internal
 */
declare function getIdPair(id: string, { version }?: {
  version?: string;
}): {
  draftId: DraftId;
  publishedId: PublishedId;
  versionId?: string;
};
/**
 * System bundles are sets of documents owned by the system.
 *
 * - Draft documents contain data that has not yet been published. These documents all exist in the "drafts" path.
 * - Published documents contain data that has been published. These documents all exist in the root path.
 *
 * These differ to user bundles, which are created when a user establishes a custom set of documents
 * (e.g. by creating a release).
 *
 * @public
 */
declare const systemBundles: readonly ['drafts', 'published'];
/**
 * System bundles are sets of documents owned by the system.
 *
 * - Draft documents contain data that has not yet been published. These documents all exist in the "drafts" path.
 * - Published documents contain data that has been published. These documents all exist in the root path.
 *
 * These differ to user bundles, which are created when a user establishes a custom set of documents
 * (e.g. by creating a release).
 *
 * @public
 */
type SystemBundle = 'drafts' | 'published';
/** @internal */
declare function isSystemBundle(maybeSystemBundle: unknown): maybeSystemBundle is SystemBundle;
/** @internal */
type SystemBundleName = 'draft' | 'published';
/**
 * `isSystemBundle` should be preferred, but some parts of the codebase currently use the singular
 * "draft" name instead of the plural "drafts".
 *
 * @internal
 */
declare function isSystemBundleName(maybeSystemBundleName: unknown): maybeSystemBundleName is SystemBundleName;
/**
 *  @internal
 *  Given a perspective stack and a document id, returns true if the document id matches any of the provided perspectives
 *  e.g. `idMatchesPerspective('['summer'], 'versions.summer.foo') === true`
 *  e.g. `idMatchesPerspective('['drafts', 'summer'], 'versions.summer.foo') === true`
 *  e.g. `idMatchesPerspective('['drafts'], 'versions.summer.foo') === false`
 *  e.g. `idMatchesPerspective('['drafts', 'summer'], 'versions.winter.foo') === false`
 *
 * Note: a published id will match any perspective
 *   e.g. `idMatchesPerspective('['drafts', 'summer'], 'foo') === true`
 */
declare function idMatchesPerspective(perspectiveStack: StackablePerspective[], documentId: string): boolean;
/** @internal */
declare function createDraftFrom(document: SanityDocument): SanityDocument;
/** @internal */
declare function newDraftFrom(document: SanityDocument): SanityDocument;
/** @internal */
declare function createPublishedFrom(document: SanityDocument): SanityDocument;
/**
 * Takes a list of documents and collates draft/published pairs into single entries
 * `{id: <published id>, draft?: <draft document>, published?: <published document>}`
 *
 * Note: because Map is ordered by insertion key the resulting array will be ordered by whichever
 * version appeared first
 *
 * @internal
 */
interface CollatedHit<T extends {
  _id: string;
} = {
  _id: string;
}> {
  id: string;
  type: string;
  draft?: T;
  published?: T;
  versions: T[];
}
/** @internal */
declare function collate<T extends {
  _id: string;
  _type: string;
}>(documents: T[]): CollatedHit<T>[];
/** @internal */
declare function removeDupes(documents: SanityDocumentLike[]): SanityDocumentLike[];
declare const VARIANT_DOCUMENT_TYPE: 'system.variant';
declare const VARIANT_DOCUMENTS_PATH: '_.variants';
/**
 * @internal
 * This is the client options used for the variants studio client, using the `X` API version for now
 * TODO: Replace with a dated version once we have a stable API version
 */
declare const VARIANTS_STUDIO_CLIENT_OPTIONS: SourceClientOptions;
/**
 * @internal
 */
type VariantId = `${typeof VARIANT_DOCUMENTS_PATH}.${string}`;
interface SystemVariant extends SanityDocument {
  _type: typeof VARIANT_DOCUMENT_TYPE;
  _id: VariantId;
  name?: string;
  conditions: Record<string, string>;
  priority: number;
  metadata?: {
    title?: string;
    description?: PortableTextBlock[];
    /** Variant type key. Missing values are read as `variant`. */
    type?: string;
    [key: string]: unknown;
  };
}
/**
 * @internal
 */
declare function isVariantId(maybeVariantId: unknown): maybeVariantId is VariantId;
/**
 * @beta
 */
type ReleaseId = string;
/**
 * A value representing a perspective, including the data describing it. This is either the name of a
 * system bundle, or a document describing a release.
 *
 * @public
 */
type TargetPerspective = ReleaseDocument | SystemBundle | string;
/**
 * @beta
 * @deprecated Use `TargetPerspective` instead.
 */
type SelectedPerspective = TargetPerspective;
/**
 * @beta
 */
type PerspectiveStack = ExtractArray<ClientPerspective>;
type PerspectiveBundle = 'published' | 'drafts' | (string & {});
/**
 * @beta
 */
interface PerspectiveContextValue {
  selectedPerspectiveName: 'published' | ReleaseId | undefined;
  /**
   * The releaseId as `r<string>`; it will be undefined if the selected perspective is `published` or `drafts`
   */
  selectedReleaseId: ReleaseId | undefined;
  selectedPerspective: TargetPerspective;
  /**
   * The stacked array of perspectives ids ordered chronologically to represent the state of documents at the given point in time.
   * It can be used as the perspective param in the client to get the correct view of the documents.
   * @returns ["published"] | ["drafts"] | ["releaseId2", "releaseId1", "drafts"]
   */
  perspectiveStack: PerspectiveStack;
  excludedPerspectives: string[];
  /**
   * Short ids requested via the `variant` sticky param, in param order.
   * Empty when no variant is requested. A bare id is type `variant`.
   * Each id is available synchronously, before its definition has resolved.
   * Document editing uses the first id only until multi variants are supported.
   * @beta
   * @internal
   */
  selectedVariantNames: string[];
  /**
   * Resolved definitions aligned with {@link PerspectiveContextValue.selectedVariantNames}.
   * An entry is undefined while definitions are loading (see `useAllVariants().loading`) or
   * when that id matches no definition.
   * Document editing uses the first entry only until multi variants are supported.
   * @beta
   * @internal
   */
  selectedVariants: (SystemVariant | undefined)[];
  /**
   * The first `selectedVariantNames` entry.
   * Undefined when no variant is requested.
   *
   * @deprecated Use `selectedVariantNames`. This is the first selected id.
   * @beta
   * @internal
   */
  selectedVariantName: string | undefined;
  /**
   * The first `selectedVariants` entry.
   * Undefined when no variant is requested, while definitions are loading, or when the first id
   * matches no definition.
   *
   * @deprecated Use `selectedVariants`. This is the first selected definition.
   * @beta
   * @internal
   */
  selectedVariant: SystemVariant | undefined;
  /**
   * The selected bundle, either `published`, `drafts` or a release id or the bundle id for anonymous bundles like agent documents.
   */
  bundle: PerspectiveBundle;
}
/**
 * @internal
 */
type ExtractArray<Union> = Union extends unknown[] ? Union : never;
/**
 * @internal
 */
type ReleasesNavMenuItemPropsGetter = (content: {
  perspective: TargetPerspective;
}) => Partial<ComponentProps<typeof MenuItem>>;
/**
 * When comparing documents, diff provenance reflects details about the bundle in which a change
 * was introduced.
 *
 * @public
 */
interface ProvenanceDiffAnnotation {
  provenance: {
    bundle?: TargetPerspective;
  };
}
/**
 *
 * @hidden
 * @beta
 */
type UploadProgressEvent = {
  type: 'uploadProgress';
  patches: FormPatch[] | null;
};
/**
 *
 * @hidden
 * @beta
 */
type ResolvedUploader = {
  uploader: Uploader;
  type: SchemaType;
};
/**
 *
 * @hidden
 * @beta
 */
type UploadOptions = {
  metadata?: AssetMetadataType[];
  storeOriginalFilename?: boolean;
  label?: string;
  title?: string;
  description?: string;
  creditLine?: string;
  source?: AssetSourceSpec;
};
/**
 * @internal
 */
type UploaderDef = {
  type: string;
  accepts: string;
  upload: (client: SanityClient, file: File, type: SchemaType) => Observable<UploadProgressEvent>;
};
/**
 *
 * @hidden
 * @beta
 */
type Uploader<S extends SchemaType = SchemaType> = {
  type: string;
  accepts: string;
  upload: (client: SanityClient, file: File, type: S, options?: UploadOptions) => Observable<UploadProgressEvent>;
  priority: number;
};
/**
 *
 * @hidden
 * @beta
 */
interface FileLike {
  type: string;
  name?: string;
}
/**
 *
 * @hidden
 * @beta
 */
type UploaderResolver<S extends SchemaType = SchemaType> = (type: S, file: FileLike) => Uploader<S> | null;
/**
 *
 * @hidden
 * @beta
 */
type AssetSourcesResolver<S extends SchemaType = SchemaType> = (type: S, file?: FileLike) => AssetSource[];
/**
 * @hidden
 * @beta */
interface ArrayInputInsertEvent<Item> {
  items: Item[];
  position: 'before' | 'after';
  referenceItem: KeyedSegment | number;
  skipInitialValue?: boolean;
  open?: boolean;
}
/**
 * @hidden
 * @beta */
interface ArrayInputCopyEvent<Item> {
  items: Item[];
}
/**
 * @hidden
 * @beta */
interface ArrayInputMoveItemEvent {
  fromIndex: number;
  toIndex: number;
}
/**
 * @hidden
 * @beta */
interface UploadEvent {
  file: File;
  schemaType: SchemaType;
  uploader: Uploader;
}
/** @public */
type ObjectItem = {
  _type?: string;
  _key: string;
};
/**
 * Props for the base item component.
 *
 * @public
 */
interface BaseItemProps<T> extends NodeDiffProps<ProvenanceDiffAnnotation> {
  /** The schema type of the item. */
  schemaType: SchemaType;
  /** The index of the item. */
  index: number;
  /** The level of the item. */
  level: number;
  /** The value of the item. */
  value: unknown;
  /** The path of the item. */
  path: Path;
  /** The title of the item. */
  title: string | undefined;
  /** The description of the item. */
  description: string | undefined;
  /** The ID of the input element. */
  inputId: string;
  /** The function to call when the item receives focus. */
  onFocus: (event: FocusEvent) => void;
  /** The function to call when the item loses focus. */
  onBlur: (event: FocusEvent) => void;
  /** Whether the item is read-only. */
  readOnly?: boolean;
  /** Whether the item is focused. */
  focused?: boolean;
  /** The function to call when the item is removed. */
  onRemove: () => void;
  /**
   * @hidden
   * @beta */
  onInsert: (event: Omit<ArrayInputInsertEvent<T>, 'referenceItem'>) => void;
  /**
   * @hidden
   * @beta */
  onCopy: (event: Omit<ArrayInputCopyEvent<T>, 'referenceItem'>) => void;
  /** The children of the item. */
  children: ReactNode;
  /** The validation markers for the item. */
  validation: FormNodeValidation[];
  /**
   * @hidden
   * @beta */
  presence: FormNodePresence[];
  /** The function to call to render the default item. See {@link ItemProps} */
  renderDefault: (props: ItemProps) => React.JSX.Element;
}
/**
 * Props for the ObjectItem component.
 * @public
 */
interface ObjectItemProps<Item extends ObjectItem = ObjectItem> extends BaseItemProps<Item> {
  /** Whether the item has changes in a draft. */
  changed: boolean;
  /** The schema type of the object. */
  schemaType: ObjectSchemaType;
  /** The schema type of the parent array. */
  parentSchemaType: ArraySchemaType;
  /** Whether the item is collapsed. */
  collapsed: boolean | undefined;
  /** Whether the item is collapsible. */
  collapsible: boolean | undefined;
  /** Callback for when the item is collapsed. */
  onCollapse: () => void;
  /** Callback for when the item is expanded. */
  onExpand: () => void;
  /** Whether the item is open. */
  open: boolean;
  /** Callback for when the item is closed. */
  onClose: () => void;
  /** Callback for when the item is opened. */
  onOpen: () => void;
  /** The value of the item. */
  value: Item;
  /**
   * @hidden
   * @beta */
  inputProps: Omit<ObjectInputProps, 'renderDefault'>;
}
/** @public */
type ItemProps = ObjectItemProps | ObjectItemProps<CrossDatasetReferenceValue & ObjectItem> | ObjectItemProps<FileValue & ObjectItem> | ObjectItemProps<GeopointValue & ObjectItem> | ObjectItemProps<ImageValue & ObjectItem> | ObjectItemProps<ReferenceValue & ObjectItem> | ObjectItemProps<SlugValue & ObjectItem> | PrimitiveItemProps;
/** @public */
interface PrimitiveItemProps extends BaseItemProps<string | number | boolean> {
  /**
   * The value of the primitive item.
   */
  value: string | number | boolean;
  /**
   * The schema type of the primitive item.
   */
  schemaType: NumberSchemaType | BooleanSchemaType | StringSchemaType;
  /**
   * The schema type of the parent array containing the item.
   */
  parentSchemaType: ArraySchemaType;
}
/**
 * This error may happen if the member type is structurally incompatible with the defined schema type.
 * Some examples:
 *   - the schema type defines an array, but the actual value is an object (or vice versa)
 *   - the schema type defines a number, but the actual value is a string (or vice versa)
 *   - the schema type defines an object, but the actual value is a string (or vice versa)
 *
 * @public
 */
type IncompatibleTypeError = {
  type: 'INCOMPATIBLE_TYPE';
  expectedSchemaType: SchemaType;
  resolvedValueType: string;
  value: unknown;
};
/**
 * This error may happen if the _type of the value is different from the declared schema type
 * It represents a case where we encounter field value that is structurally compatible with the field's defined schema type
 * (e.g. they are both json objects), but the _type name is different from what the schema type expects
 *
 * Note on compatibility: The schema of a field may be defined as an object with fields (a, b, c), but the value is an object with (d, e, f)
 * These are still structurally compatible because (d, e, f) will be considered undeclared members
 *
 * @public
 */
type TypeAnnotationMismatchError = {
  type: 'TYPE_ANNOTATION_MISMATCH';
  expectedSchemaType: SchemaType;
  resolvedValueType: string;
};
/**
 * This error may happen for arrays of objects where one or more of the members are missing a _key
 *
 * @public
 */
type MissingKeysError = {
  type: 'MISSING_KEYS';
  schemaType: ArraySchemaType;
  value: {
    _key?: string;
  }[];
};
/**
 * This error may happen for arrays of objects where one or more of the members are having duplicate keys
 *
 * @public
 */
type DuplicateKeysError = {
  type: 'DUPLICATE_KEYS';
  schemaType: ArraySchemaType;
  duplicates: [index: number, key: string][];
};
/**
 * This error may happen for objects if we encounter fields that are not declared in the schema
 *
 * @public
 */
type UndeclaredMembersError = {
  type: 'UNDECLARED_MEMBERS';
  schemaType: ArraySchemaType;
};
/**
 * This error may happen for objects if we encounter fields that are not declared in the schema
 *
 * @public
 */
type MixedArrayError = {
  type: 'MIXED_ARRAY';
  schemaType: ArraySchemaType;
  value: unknown[];
};
/**
 * This error may happen for arrays (of both objects and primitive values) if we encounter items that are not valid according to the schema definition
 *
 *
 * @hidden
 * @beta
 */
type InvalidItemTypeError = {
  type: 'INVALID_ITEM_TYPE';
  validTypes: SchemaType[];
  resolvedValueType: string;
  value: unknown;
};
/**
 * Represents an error that occurred in a specific field of a data object.
 * @public
 *
 * @remarks
 * This interface is used to provide detailed information about the error,
 * including the field name, the error type, and the error message.
 */
interface FieldError {
  /**
   * The type of error that occurred.
   */
  kind: 'error';
  /**
   * The unique identifier for the error.
   */
  key: string;
  /**
   * The name of the field that the error occurred in.
   */
  fieldName: string;
  /**
   * The specific error that occurred.
   *
   * ```md
   * Possible error types include:
   * - IncompatibleTypeError
   * - TypeAnnotationMismatchError
   * - MissingKeysError
   * - DuplicateKeysError
   * - UndeclaredMembersError
   * - MixedArrayError
   * ```
   *
   * See {@link IncompatibleTypeError},
   * {@link TypeAnnotationMismatchError},
   * {@link MissingKeysError},
   * {@link DuplicateKeysError},
   * {@link UndeclaredMembersError} and
   * {@link MixedArrayError} for more information.
   *
   */
  error: IncompatibleTypeError | TypeAnnotationMismatchError | MissingKeysError | DuplicateKeysError | UndeclaredMembersError | MixedArrayError;
  path: Path;
}
/**
 * @hidden
 * @beta */
interface ArrayItemError {
  kind: 'error';
  key: string;
  index: number;
  error: InvalidItemTypeError;
}
/**
 * @hidden
 * @public */
type FieldsetMembers = FieldMember | FieldError | DecorationMember;
/**
 * @hidden
 * @beta */
interface FieldsetState {
  path: Path;
  name: string;
  level: number;
  title?: string;
  description?: string;
  hidden?: boolean;
  collapsible?: boolean;
  collapsed?: boolean;
  columns?: number | number[];
  members: FieldsetMembers[];
}
/** @public */
type ObjectMember = FieldMember | FieldSetMember | FieldError | DecorationMember;
/**
 * @hidden
 * @beta */
type ArrayOfObjectsMember = ArrayOfObjectsItemMember | ArrayItemError;
/**
 * @hidden
 * @beta */
type ArrayOfPrimitivesMember = ArrayOfPrimitivesItemMember | ArrayItemError;
/**
 * @hidden
 * @beta */
interface ArrayOfObjectsItemMember<Node extends ObjectArrayFormNode = ObjectArrayFormNode> {
  kind: 'item';
  key: string;
  index: number;
  collapsed: boolean | undefined;
  collapsible: boolean | undefined;
  open: boolean;
  parentSchemaType: ArraySchemaType;
  /**
   * @hidden
   * @beta */
  item: Node;
}
/**
 * @hidden
 * @beta */
interface ArrayOfPrimitivesItemMember<Node extends PrimitiveFormNode = PrimitiveFormNode> {
  kind: 'item';
  key: string;
  index: number;
  open: boolean;
  parentSchemaType: ArraySchemaType;
  /**
   * @hidden
   * @beta */
  item: Node;
}
/**
 * Represents a field member in a form.
 * @public
 */
interface FieldMember<Node extends BaseFormNode = BaseFormNode> {
  /** The kind of the form node. */
  kind: 'field';
  /** The key of the field. */
  key: string;
  /** The name of the field. */
  name: string;
  /** The index of the field. */
  index: number;
  /** Whether the field is collapsed. */
  collapsed: boolean | undefined;
  /** Whether the field is collapsible. */
  collapsible: boolean | undefined;
  /** Whether the field is open. */
  open: boolean;
  /**
   * @internal
   * Whether this field is in the selected group.
   */
  inSelectedGroup: boolean;
  /**
   * @internal
   * Names of the field groups this field is part of.
   */
  groups: string[];
  /**
   * @hidden
   * @beta
   * The form node that represents this field.
   */
  field: Node;
  path: Path;
}
/**
 * @hidden
 * @public
 */
type FieldsetRenderMembersCallback = (members: FieldsetMembers[]) => FieldsetMembers[];
/**
 * Represents a member of a field set.
 * @public
 */
interface FieldSetMember {
  /** The kind of member. */
  kind: 'fieldSet';
  /** The key of the member. */
  key: string;
  /**
   * Indicates whether the member is included in the currently selected group.
   * If it's hidden and in the currently selected group, it should still be excluded from its group.
   * @internal
   */
  _inSelectedGroup: boolean;
  /** The names of the field groups the member belongs to. */
  groups: string[];
  /**
   * @hidden
   * @beta
   * The state of the field set.
   */
  fieldSet: FieldsetState;
  /**
   * @hidden
   * @beta
   * The callback to render the members of the field set.
   */
  renderMembers?: FieldsetRenderMembersCallback;
  path: Path;
}
/**
 * Represents a decoration member for a form.
 * @hidden
 * @public
 */
interface DecorationMember {
  kind: 'decoration';
  key: string;
  component: React.JSX.Element | ComponentType;
}
/**
 * @public
 */
type ComputeDiff<Annotation> = (value: unknown) => Diff<Annotation>;
/**
 * Props that encapsulate document chronology within a stack of versions.
 *
 * @public
 */
interface NodeChronologyProps {
  /**
   * Whether the document has an upstream version.
   */
  hasUpstreamVersion: boolean;
  /**
   * Whether the document has a base variant.
   */
  hasBaseVariant: boolean;
}
/**
 * Props that encapsulate changes in the node's value.
 *
 * @public
 */
interface NodeDiffProps<Annotation, Value = unknown> extends NodeChronologyProps {
  /**
   * A function that takes any value and produces a diff between that value and the value the node
   * is being compared to.
   *
   * This can be used to compute a diff optimistically.
   *
   * This is marked as unstable because the API may need to evolve as we iterate on the advanced
   * version control functionality. It will be stabilised when that project has matured.
   */
  __unstable_computeDiff: ComputeDiff<Annotation>;
  /**
   * Whether the current value is different to the value the node is being compared to.
   */
  changed: boolean;
  /**
   * The value the node is currently being compared to. This is taken from the upstream version, if
   * the document has an upstream version. Otherwise, it's taken from the document's current value.
   *
   * You can use the `hasUpstreamVersion` prop to determine whether the document has an upstream
   * version.
   */
  compareValue?: Value;
  /**
   * Whether the current value is different to the node's value in the document's base variant.
   */
  changedFromBaseVariant: boolean;
  /**
   * The node's value in the document's base variant.
   *
   * You can use the `hasBaseVariant` prop to determine whether the document has a base variant.
   */
  baseVariantValue?: Value;
}
/**
 * @hidden
 * @public
 */
interface BaseFormNode<T = unknown, S extends SchemaType = SchemaType> extends NodeDiffProps<ProvenanceDiffAnnotation, T> {
  /** The unique identifier of the node. */
  id: string;
  /** The schema type of the node. */
  schemaType: S;
  /** The level of the node in the form hierarchy. */
  level: number;
  /** The path of the node in the form hierarchy. */
  path: Path;
  /**
   * @hidden
   * @beta */
  presence: FormNodePresence[];
  /** The validation markers of the node. */
  validation: FormNodeValidation[];
  /** The value of the node. */
  value: T | undefined;
  /** Whether the node is read-only. */
  readOnly?: boolean;
  /** Whether the node is focused. */
  focused?: boolean;
  displayInlineChanges?: boolean;
}
/** @internal */
interface HiddenField {
  kind: 'hidden';
  key: string;
  name: string;
  index: number;
}
/**
 * @hidden
 * @public */
type ObjectRenderMembersCallback = (members: ObjectMember[]) => ObjectMember[];
/** @public */
interface ObjectFormNode<T = { [key in string]: unknown; }, S extends ObjectSchemaType = ObjectSchemaType> extends BaseFormNode<T, S & {
  renderMembers?: ObjectRenderMembersCallback;
}> {
  /** The focus path of the form node. */
  focusPath: Path;
  /**
   * @hidden
   * @beta */
  groups: FormFieldGroup[];
  /**
   * @hidden
   * @beta */
  members: ObjectMember[];
  /**
   * @hidden
   * @beta */
  _allMembers?: ObjectMember[];
}
/** @public */
interface ObjectArrayFormNode<T extends ObjectItem = ObjectItem, S extends ObjectSchemaType = ObjectSchemaType> extends BaseFormNode<T, S> {
  /** The focus path of the form node. */
  focusPath: Path;
  value: T;
  /**
   * @hidden
   * @beta */
  groups: FormFieldGroup[];
  /**
   * @hidden
   * @beta */
  members: ObjectMember[];
  changesOpen?: boolean;
}
/** @internal */
type DocumentFormNode<T extends { [key in string]: unknown; } = { [key in string]: unknown; }, S extends ObjectSchemaType = ObjectSchemaType> = ObjectFormNode<T, S>;
/** @public */
interface ArrayOfObjectsFormNode<T extends any[] = KeyedObject[], S extends ArraySchemaType = ArraySchemaType> extends BaseFormNode<T, S> {
  /** The focus path of the form node. */
  focusPath: Path;
  /**
   * @hidden
   * @beta */
  members: ArrayOfObjectsMember[];
}
/** @public */
interface ArrayOfPrimitivesFormNode<T extends (string | number | boolean)[] = (string | number | boolean)[], S extends ArraySchemaType = ArraySchemaType> extends BaseFormNode<T, S> {
  /** The focus path of the form node. */
  focusPath: Path;
  /**
   * @hidden
   * @beta */
  members: ArrayOfPrimitivesMember[];
}
/** @public */
type BooleanFormNode<S extends BooleanSchemaType = BooleanSchemaType> = BaseFormNode<boolean, S>;
/** @public */
type NumberFormNode<S extends NumberSchemaType = NumberSchemaType> = BaseFormNode<number, S>;
/** @public */
type StringFormNode<S extends StringSchemaType = StringSchemaType> = BaseFormNode<string, S>;
/**
 * @hidden
 * @beta */
type PrimitiveFormNode = BooleanFormNode | NumberFormNode | StringFormNode;
/**
 * Props for rendering text decorations in Portable Text blocks.
 * It could be decorations like bold, italic, subscript etc.
 *
 * @public
 */
interface BlockDecoratorProps {
  /**
   * The span node as rendered without the decorator.
   */
  children: React.JSX.Element;
  /**
   * If the span node currently is focused by the user.
   */
  focused: boolean;
  /**
   * The default render function for this decorator,
   * some decorators are proved by default and has a default rendering.
   */
  renderDefault: (props: BlockDecoratorProps) => React.JSX.Element;
  /**
   * The decorator schema type. Icon can be found here.
   */
  schemaType: BlockDecoratorDefinition;
  /**
   * If the span node text currently is selected by the user.
   */
  selected: boolean;
  /**
   * The title of the decorator (e.g. 'Underlined text') for UI-representation.
   */
  title: string;
  /**
   * The value of the decorator (e.g. 'underlined') as it
   * appears in the child.marks array of the text node.
   */
  value: string;
}
/**
 * Props for rendering a text block style.
 *
 * @public
 */
interface BlockStyleProps {
  /**
   * The value of the block that is rendered style for.
   */
  block: PortableTextTextBlock;
  /**
   * The block as rendered without this style.
   */
  children: React.JSX.Element;
  /**
   * If the block currently has focus in the text editor.
   */
  focused: boolean;
  /**
   * The default rendering function for this style.
   */
  renderDefault: (props: BlockStyleProps) => React.JSX.Element;
  /**
   * The schema type for this style.
   */
  schemaType: BlockStyleDefinition;
  /**
   * If the block currently have a text selection.
   */
  selected: boolean;
  /**
   * The title of the style (e.g. 'Large Heading') for UI-representation.
   */
  title: string;
  /**
   * The value of the style (e.g. 'h1') as it appears in the block's `.style` property value.
   */
  value: string;
}
/**
 * Props for rendering a Portable Text block as a list item.
 *
 * @public
 */
interface BlockListItemProps {
  /**
   * The block that is rendered as a list item.
   */
  block: PortableTextTextBlock;
  /**
   * The block rendered without the list style.
   */
  children: React.JSX.Element;
  /**
   * If the block currently is focused by the user.
   */
  focused: boolean;
  /**
   * The nesting level of this list item.
   */
  level: number;
  /**
   * The default function for rendering this as a list item. Some list types are built in and
   * will have a default rendering.
   */
  renderDefault: (props: BlockListItemProps) => React.JSX.Element;
  /**
   * The schema type for this list type. Icon can be found here.
   */
  schemaType: BlockListDefinition;
  /**
   * If the user currently has a text selection in this block.
   */
  selected: boolean;
  /**
   * The title of the list item type (e.g. 'Bullet list') for UI-representation.
   */
  title: string;
  /**
   * The value of the list item type (e.g. 'bullet') as it appears in the block.listItem attribute.
   */
  value: string;
}
/**
 * Props for rendering a Portable Text annotation
 *
 * @public
 * @remarks If you want to render a mix of the annotated text and non-text content, you have to attribute
 * the non-text containers with `contentEditable={false}`. See the second example.
 * @example Simple example of customizing the annotation text to render yellow.
 * ```ts
 * (props: BlockAnnotationProps) =>
 *   props.renderDefault({
 *     ...props,
 *     textElement: <span style={{color: 'yellow'}}>{props.textElement}</span>,
 *   })
 * ```
 * @example Simple example of rendering the annotation with a custom modal for editing.
 * Note that the form content container is attributed as `contentEditable={false}`.
 * This is to signal to the text editor that this content isn't part of the editable text.
 * ```ts
 * (props: BlockAnnotationProps) => {
 *   return (
 *     <>
 *       // Render the annotated text
 *       <span onClick={props.onOpen}>
 *         {props.textElement}
 *       </span>
 *       // Render the editing form if the object is opened
 *       {props.open && (
 *         <Dialog
 *           contentEditable={false} // Attribute this as non-editable to the text editor
 *           header={`Edit ${props.schemaType.title}`}
 *           id={`dialog-${props.value._key}`}
 *           onClickOutside={props.onClose}
 *           onClose={props.onClose}
 *         >
 *           <Box margin={2} padding={2}>
 *             {props.children}
 *           </Box>
 *         </Dialog>
 *      )}
 *     </>
 *   )
 * }
 * ```
 * */
interface BlockAnnotationProps {
  /**
   * Boundary element of the floating toolbar element.
   */
  __unstable_floatingBoundary: HTMLElement | null;
  /**
   * Boundary element where the text for this annotation appears.
   */
  __unstable_referenceBoundary: HTMLElement | null;
  /**
   * DOM element for the annotated text.
   */
  __unstable_referenceElement: HTMLElement | null;
  /**
   * Wether the annotated text node has editor focus.
   * @remarks differs from `focused` which is wether the annotation object has form focus.
   */
  __unstable_textElementFocus?: boolean;
  /**
   * The input form for the annotation object.
   * @remarks If you wrap this in something, you must make sure to put `contentEditable={false}` on the root container.
   * Otherwise the editor will think content is part of the editable text and will error.
   */
  children: ReactNode;
  /**
   * If the editor form for this annotation object currently have form focus.
   */
  focused: boolean;
  /**
   * Markers (meta data) connected to this annotation.
   * @deprecated - use `renderBlock` and `renderInlineBlock` interfaces instead
   */
  markers: PortableTextMarker[];
  /**
   * Closes the editing form connected to this annotation.
   */
  onClose: () => void;
  /**
   * Opens the editing form connected to this annotation.
   */
  onOpen: () => void;
  /**
   * Focus a form node in the object for this annotation.
   * @param path - the relative path to the form node to put focus on.
   */
  onPathFocus: (path: Path) => void;
  /**
   * Removes the annotation object from the text.
   */
  onRemove: () => void;
  /**
   * If the annotation is currently opened for editing.
   */
  open: boolean;
  /**
   * The parent schema type. For annotations this this the block type.
   */
  parentSchemaType: SchemaType;
  /**
   * The full form path to this annotation from document root.
   */
  path: Path;
  /**
   * Form presence for this annotation.
   */
  presence: FormNodePresence[];
  /**
   * Is the annotation object read only?
   */
  readOnly: boolean;
  /**
   * Plugin chain render callback.
   */
  renderAnnotation?: RenderAnnotationCallback;
  /**
   * Plugin chain render callback.
   */
  renderBlock?: RenderBlockCallback;
  /**
   * Plugin chain render callback.
   */
  renderDefault: (props: BlockAnnotationProps) => React.JSX.Element;
  /**
   * Plugin chain render callback.
   */
  renderField: RenderFieldCallback;
  /**
   * Plugin chain render callback.
   */
  renderInlineBlock?: RenderBlockCallback;
  /**
   * Plugin chain render callback.
   */
  renderInput: RenderInputCallback;
  /**
   * Plugin chain render callback.
   */
  renderItem: RenderArrayOfObjectsItemCallback;
  /**
   * Plugin chain render callback.
   */
  renderPreview: RenderPreviewCallback;
  /**
   * The schema type for the annotation object.
   */
  schemaType: ObjectSchemaType & {
    i18nTitleKey?: string;
  };
  /**
   * If the annotated text currently is selected by the user.
   */
  selected: boolean;
  /**
   * React element of the text that is being annotated.
   */
  textElement: React.JSX.Element;
  /**
   * Form validation for the annotation object.
   */
  validation: FormNodeValidation[];
  /**
   * Value of the annotation object.
   */
  value: PortableTextObject;
}
/**
 * Props for rendering a Portable Text block
 *
 * @public
 */
interface BlockProps {
  /**
   * Boundary element of the floating toolbar element.
   */
  __unstable_floatingBoundary: HTMLElement | null;
  /**
   * Boundary element for the block.
   */
  __unstable_referenceBoundary: HTMLElement | null;
  /**
   * DOM element for the block.
   */
  __unstable_referenceElement: HTMLElement | null;
  /**
   * The default rendering of the block (the text).
   */
  children: ReactNode;
  /**
   * Whether the block has changes compared to the published version.
   */
  changed: boolean;
  /**
   * If the block currently is focused by the user.
   */
  focused: boolean;
  /**
   * Markers (meta data) connected to this annotation.
   * @deprecated - use `renderBlock` and `renderInlineBlock` interfaces instead
   */
  markers: PortableTextMarker[];
  /**
   * Closes the editing form connected to this block.
   * For regular text blocks this is not relevant.
   */
  onClose: () => void;
  /**
   * Opens the editing form connected to this block.
   * For regular text blocks this is not relevant.
   */
  onOpen: () => void;
  /**
   * Focus a form node in this block.
   * @param path - the relative path to the form node to put focus on.
   */
  onPathFocus: (path: Path) => void;
  /**
   * Removes the block.
   */
  onRemove: () => void;
  /**
   * If the block is currently opened for editing.
   */
  open: boolean;
  /**
   * The parent schema type (array type).
   */
  parentSchemaType: ArraySchemaType | ObjectSchemaType;
  /**
   * The full form path to this block from document root.
   */
  path: Path;
  /**
   * Form presence for this block.
   */
  presence: FormNodePresence[];
  /**
   * Is the block object read only?
   */
  readOnly: boolean;
  /**
   * Plugin chain render callback.
   */
  renderAnnotation?: RenderAnnotationCallback;
  /**
   * Plugin chain render callback.
   */
  renderBlock?: RenderBlockCallback;
  /**
   * Plugin chain render callback (default rendering function of the block).
   */
  renderDefault: (props: BlockProps) => React.JSX.Element;
  /**
   * Plugin chain render callback.
   */
  renderField: RenderFieldCallback;
  /**
   * Plugin chain render callback.
   */
  renderInlineBlock?: RenderBlockCallback;
  /**
   * Plugin chain render callback.
   */
  renderInput: RenderInputCallback;
  /**
   * Plugin chain render callback.
   */
  renderItem: RenderArrayOfObjectsItemCallback;
  /**
   * Plugin chain render callback.
   */
  renderPreview: RenderPreviewCallback;
  /**
   * The schema type for the block.
   */
  schemaType: ObjectSchemaType;
  /**
   * If the block is in the user's selection.
   */
  selected: boolean;
  /**
   * Form validation for the block object.
   */
  validation: FormNodeValidation[];
  /**
   * Value of the block.
   */
  value: PortableTextBlock;
}
/**
 * Props for rendering Portable Text plugins
 *
 * @beta
 */
interface PortableTextPluginsProps {
  renderDefault: (props: PortableTextPluginsProps) => React.JSX.Element;
  plugins: {
    markdown?: {
      /**
       * @deprecated - add the configuration directly to `markdown` instead
       */
      config: MarkdownConfig;
      /**
       * @defaultValue true
       */
      enabled?: boolean;
    } | (MarkdownShortcutsPluginProps & {
      config?: undefined;
      /**
       * @defaultValue true
       */
      enabled?: boolean;
    });
    pasteLink?: {
      /**
       * @defaultValue true
       */
      enabled?: boolean;
    } & PasteLinkPluginProps;
    typography?: {
      /**
       * @defaultValue true
       */
      enabled?: boolean;
    } & TypographyPluginProps;
    /**
     * Table editing for a table-shaped block object (`table` > `rows` >
     * `row` > `cells` > `cell` > `value`). Unlike the other built-in
     * plugins, tables are opt-in: the field's schema must include the table
     * member type, and the plugin must be enabled explicitly.
     *
     * For the header-row toggle in the table menu to persist, the table
     * type must also declare a `headerRows` number field; without it the
     * toggled value is stripped from the document.
     */
    table?: {
      /**
       * @defaultValue false
       */
      enabled?: boolean;
      /**
       * Native `@portabletext/plugin-table` container definitions, one per
       * role, for binding the plugin to your own type and field names
       * (adopting a table shape that already exists in your dataset).
       * Omitted renders fall back to the studio's table UI, and omitted
       * roles fall back to the canonical `table`/`row`/`cell` names. The
       * nesting shape and the `headerRows` field name stay fixed, and the
       * schema must declare the same names the containers use.
       *
       * Define the containers at module scope: a new object identity
       * re-registers the plugin on every render.
       */
      containers?: TableContainers;
    };
  };
}
/**
 * @beta
 */
type MarkdownConfig = Omit<MarkdownShortcutsPluginProps, 'unorderedList' | 'orderedList'> & ({
  orderedList?: undefined;
  /**
   * @deprecated - use `orderedList` instead
   */
  orderedListStyle?: MarkdownShortcutsPluginProps['orderedList'];
} | {
  orderedList?: MarkdownShortcutsPluginProps['orderedList'];
  /**
   * @deprecated - use `orderedList` instead
   */
  orderedListStyle?: undefined;
}) & ({
  unorderedList?: undefined;
  /**
   * @deprecated - use `unorderedList` instead
   */
  unorderedListStyle?: MarkdownShortcutsPluginProps['unorderedList'];
} | {
  unorderedList?: MarkdownShortcutsPluginProps['unorderedList'];
  /**
   * @deprecated - use `unorderedList` instead
   */
  unorderedListStyle?: undefined;
});
/**
 * @hidden
 * @public  */
type RenderArrayOfObjectsItemCallback = (itemProps: Omit<ObjectItemProps, 'renderDefault'>) => ReactNode;
/**
 * @hidden
 * @beta */
type RenderArrayOfPrimitivesItemCallback = (itemProps: Omit<PrimitiveItemProps, 'renderDefault'>) => ReactNode;
/**
 * @hidden
 * @public */
type RenderItemCallback = (itemProps: Omit<ObjectItemProps, 'renderDefault'> | Omit<PrimitiveItemProps, 'renderDefault'>) => ReactNode;
/**
 * @hidden
 * @public */
type RenderFieldCallback<T extends FieldProps = FieldProps> = (fieldProps: Omit<T, 'renderDefault'>) => ReactNode;
/**
 * @hidden
 * @public */
type RenderInputCallback<T extends InputProps = InputProps> = (inputProps: Omit<T, 'renderDefault'>) => ReactNode;
/**
 * @hidden
 * @public */
type RenderBlockCallback<T extends BlockProps = BlockProps> = (blockProps: Omit<T, 'renderDefault'>) => ReactNode;
/**
 * @hidden
 * @public */
type RenderAnnotationCallback<T extends BlockAnnotationProps = BlockAnnotationProps> = (annotationProps: Omit<T, 'renderDefault'>) => ReactNode;
/**
 *
 * @hidden
 * @public
 */
interface RenderPreviewCallbackProps<TLayoutKey = PreviewLayoutKey> {
  actions?: ReactNode | ComponentType<{
    layout: TLayoutKey;
  }>;
  children?: ReactNode;
  error?: Error | null;
  fallbackTitle?: ReactNode;
  isPlaceholder?: boolean;
  layout?: TLayoutKey;
  mediaDimensions?: PreviewMediaDimensions;
  progress?: number;
  status?: ReactNode | ComponentType<{
    layout: TLayoutKey;
  }>;
  value: unknown;
  withBorder?: boolean;
  withRadius?: boolean;
  withShadow?: boolean;
  schemaType: SchemaType;
  skipVisibilityCheck?: boolean;
  style?: CSSProperties;
}
/**
 * @hidden
 * @public */
type RenderPreviewCallback = (props: RenderPreviewCallbackProps) => ReactNode;
/**
 * @hidden
 * @beta */
interface OnPathFocusPayload {
  selection?: EditorSelection;
}
/**
 * @hidden
 * @beta */
interface InputOnSelectFileFunctionProps {
  assetSource: AssetSource;
  schemaType: SchemaType;
  file: File;
}
/**
 * @hidden
 * @public */
interface BaseInputProps {
  renderDefault: (props: InputProps) => React.JSX.Element;
  /**
   * Whether the input should display inline changes. Inline changes express how a field's value
   * differs from its upstream version. Unlike custom diff components, inline changes is a mode
   * that allows the input component itself to display the change in situ.
   */
  displayInlineChanges: boolean;
}
/**
 * @hidden
 * @public */
interface ObjectInputProps<T = Record<string, any>, S extends ObjectSchemaType = ObjectSchemaType> extends BaseInputProps, Omit<ObjectFormNode<T, S>, '_allMembers' | 'displayInlineChanges'> {
  /**
   * @hidden
   * @beta */
  groups: FormFieldGroup[];
  /**
   * @hidden
   * @beta */
  onChange: (patch: FormPatch | FormPatch[] | PatchEvent) => void;
  /**
   * @hidden
   * @beta */
  onFieldCollapse: (fieldName: string) => void;
  /**
   * @hidden
   * @beta */
  onFieldExpand: (fieldName: string) => void;
  /**
   * @hidden
   * @beta */
  onFieldSetCollapse: (fieldSetName: string) => void;
  /**
   * @hidden
   * @beta */
  onFieldSetExpand: (fieldSetName: string) => void;
  /**
   * @hidden
   * @beta */
  onFieldGroupSelect: (groupName: string) => void;
  /**
   * @hidden
   * @beta */
  onPathFocus: (path: Path) => void;
  /**
   * @hidden
   * @beta */
  onFieldOpen: (fieldName: string) => void;
  /**
   * @hidden
   * @beta */
  onFieldClose: (fieldName: string) => void;
  /**
   * @hidden
   * @beta */
  renderAnnotation?: RenderAnnotationCallback;
  /**
   * @hidden
   * @beta */
  renderBlock?: RenderBlockCallback;
  /**
   * @hidden
   * @beta */
  renderInput: RenderInputCallback;
  /**
   * @hidden
   * @beta */
  renderField: RenderFieldCallback;
  /**
   * @hidden
   * @beta */
  renderInlineBlock?: RenderBlockCallback;
  /**
   * @hidden
   * @beta */
  renderItem: RenderArrayOfObjectsItemCallback;
  /**
   * @hidden
   * @beta */
  renderPreview: RenderPreviewCallback;
  /**
   * @hidden
   * @beta */
  elementProps: ComplexElementProps;
}
/**
 * @hidden
 * @public */
interface ArrayOfObjectsInputProps<T extends {
  _key: string;
} = {
  _key: string;
}, S extends ArraySchemaType = ArraySchemaType> extends BaseInputProps, Omit<ArrayOfObjectsFormNode<T[], S>, 'displayInlineChanges'> {
  /**
   * @hidden
   * @beta */
  arrayFunctions?: ComponentType<ArrayInputFunctionsProps<T, S>>;
  /**
   * @hidden
   * @beta */
  onChange: (patch: FormPatch | FormPatch[] | PatchEvent) => void;
  /**
   * @hidden
   * @beta */
  onItemAppend: (item: T) => void;
  /**
   * @hidden
   * @beta */
  onItemPrepend: (item: T) => void;
  /**
   * @hidden
   * @beta */
  onItemRemove: (itemKey: string) => void;
  /**
   * @hidden
   * @beta */
  onItemMove: (event: ArrayInputMoveItemEvent) => void;
  /**
   * @hidden
   * @beta */
  onInsert: (event: ArrayInputInsertEvent<T>) => void;
  /**
   * @hidden
   * @beta */
  resolveInitialValue: (type: SchemaType, params: Record<string, unknown>) => Promise<T>;
  /**
   * @hidden
   * @beta */
  resolveUploader: UploaderResolver<ObjectSchemaType>;
  /**
   * @hidden
   * @beta */
  onUpload?: (event: UploadEvent) => void;
  /**
   * @hidden
   * @beta */
  onSelectFile?: (props: InputOnSelectFileFunctionProps) => void;
  /**
   * @hidden
   * @beta */
  onPathFocus: (path: Path, payload?: OnPathFocusPayload) => void;
  /**
   * for array inputs using expand/collapse semantics for items
   *
   * @hidden
   * @beta
   */
  onItemCollapse: (itemKey: string) => void;
  /**
   * @hidden
   * @beta */
  onItemExpand: (itemKey: string) => void;
  /**
   * for array inputs using modal open/close semantics for items
   *
   * @hidden
   * @beta
   */
  onItemOpen: (path: Path) => void;
  /**
   * @hidden
   * @beta */
  onItemClose: () => void;
  /**
   * @hidden
   * @beta */
  renderAnnotation?: RenderAnnotationCallback;
  /**
   * @hidden
   * @beta */
  renderBlock?: RenderBlockCallback;
  /**
   * @hidden
   * @beta */
  renderInlineBlock?: RenderBlockCallback;
  /**
   * @hidden
   * @beta */
  renderField: RenderFieldCallback;
  /**
   * @hidden
   * @beta */
  renderInput: RenderInputCallback;
  /**
   * @hidden
   * @beta */
  renderItem: RenderArrayOfObjectsItemCallback;
  /**
   * @hidden
   * @beta */
  renderPreview: RenderPreviewCallback;
  /**
   * @hidden
   * @beta */
  elementProps: ComplexElementProps;
}
/**
 * @hidden
 * @beta */
type ArrayOfPrimitivesElementType<T extends any[]> = T extends (infer K)[] ? K : unknown;
/**
 * @hidden
 * @public */
interface ArrayOfPrimitivesInputProps<T extends string | boolean | number = string | boolean | number, S extends ArraySchemaType = ArraySchemaType> extends BaseInputProps, Omit<ArrayOfPrimitivesFormNode<T[], S>, 'displayInlineChanges'> {
  /**
   * @hidden
   * @beta */
  arrayFunctions?: ComponentType<ArrayInputFunctionsProps<T, S>>;
  onSetCollapsed: (collapsed: boolean) => void;
  /**
   * @hidden
   * @beta */
  onChange: (patch: FormPatch | FormPatch[] | PatchEvent) => void;
  /**
   * @hidden
   * @beta */
  onItemAppend: (item: ArrayOfPrimitivesElementType<T[]>) => void;
  /**
   * @hidden
   * @beta */
  onItemPrepend: (item: ArrayOfPrimitivesElementType<T[]>) => void;
  /**
   * @hidden
   * @beta */
  onItemRemove: (index: number) => void;
  /**
   * @hidden
   * @beta */
  onMoveItem: (event: ArrayInputMoveItemEvent) => void;
  /**
   * @hidden
   * @beta */
  onInsert: (event: {
    items: T[];
    position: 'before' | 'after';
    referenceIndex: number;
  }) => void;
  /**
   * @hidden
   * @beta */
  resolveUploader: UploaderResolver<NumberSchemaType | BooleanSchemaType | StringSchemaType>;
  /**
   * @hidden
   * @beta */
  onUpload: (event: UploadEvent) => void;
  /**
   * @hidden
   * @beta */
  onIndexFocus: (index: number) => void;
  /**
   * @hidden
   * @beta */
  renderAnnotation?: RenderAnnotationCallback;
  /**
   * @hidden
   * @beta */
  renderBlock?: RenderBlockCallback;
  /**
   * @hidden
   * @beta */
  renderInlineBlock?: RenderBlockCallback;
  /**
   * @hidden
   * @beta */
  renderInput: RenderInputCallback;
  /**
   * @hidden
   * @beta */
  renderItem: RenderArrayOfPrimitivesItemCallback;
  /**
   * @hidden
   * @beta */
  renderPreview: RenderPreviewCallback;
  /**
   * @hidden
   * @beta */
  elementProps: ComplexElementProps;
}
/**
 * @hidden
 * @public */
interface PrimitiveInputElementProps {
  'value'?: string;
  'id': string;
  'readOnly': boolean;
  'placeholder'?: string;
  'autoComplete'?: string;
  'onChange': FormEventHandler;
  'onFocus': FocusEventHandler;
  'onBlur': FocusEventHandler;
  'onPaste'?: ClipboardEventHandler;
  'ref': RefObject<any>;
  'aria-describedby': string | undefined;
  'style': Pick<CSSProperties, 'anchorName'>;
}
/**
 * @hidden
 * @beta */
interface ComplexElementProps {
  'id': string;
  'onFocus': FocusEventHandler;
  'onBlur': FocusEventHandler;
  'ref': RefObject<any>;
  'aria-describedby': string | undefined;
  'autoComplete'?: string;
  'style': Pick<CSSProperties, 'anchorName'>;
}
/**
 * @hidden
 * @public */
interface StringInputProps<S extends StringSchemaType = StringSchemaType> extends BaseInputProps, Omit<StringFormNode<S>, 'displayInlineChanges'> {
  /**
   * @hidden
   * @beta */
  onChange: (patch: FormPatch | FormPatch[] | PatchEvent) => void;
  validationError?: string;
  /**
   * @hidden
   * @beta */
  elementProps: PrimitiveInputElementProps;
}
/**
 * @hidden
 * @public */
interface NumberInputProps<S extends NumberSchemaType = NumberSchemaType> extends BaseInputProps, Omit<NumberFormNode<S>, 'displayInlineChanges'> {
  /**
   * @hidden
   * @beta */
  onChange: (patch: FormPatch | FormPatch[] | PatchEvent) => void;
  validationError?: string;
  /**
   * @hidden
   * @beta */
  elementProps: PrimitiveInputElementProps;
}
/**
 * @hidden
 * @public */
interface BooleanInputProps<S extends BooleanSchemaType = BooleanSchemaType> extends BaseInputProps, Omit<BooleanFormNode<S>, 'displayInlineChanges'> {
  /**
   * @hidden
   * @beta */
  onChange: (patch: FormPatch | FormPatch[] | PatchEvent) => void;
  /**
   * A shorthand aggregation of any validation errors the input currently have
   * Will be falsey if no error.
   * In the case of multiple errors it will be a newline delimited string of each error message
   * For advanced use cases use the ´validation´ prop which contains more levels and details
   */
  validationError?: string;
  /**
   * @hidden
   * @beta */
  elementProps: PrimitiveInputElementProps;
}
/**
 * @hidden
 * @beta */
type PrimitiveInputProps = StringInputProps | BooleanInputProps | NumberInputProps;
/**
 * Component props for the {@link PortableTextInput} React component.
 *
 * Extends {@link ArrayOfObjectsInputProps}.
 *
 * @public
 * */
interface PortableTextInputProps extends ArrayOfObjectsInputProps<PortableTextBlock, ArraySchemaType<PortableTextBlock>> {
  /**
   * A React Ref that can reference the underlying editor instance
   */
  editorRef?: React.RefObject<PortableTextEditor | null>;
  /**
   * Option to hide the default toolbar
   */
  hideToolbar?: boolean;
  /**
   * Assign hotkeys that can be attached to custom editing functions
   */
  hotkeys?: HotkeyOptions;
  /**
   * Whether the input is activated and should receive events on mount.
   * By default, this value is set to `true`
   */
  initialActive?: boolean;
  /**
   * Whether the input is _initially_ open in fullscreen mode
   */
  initialFullscreen?: boolean;
  /**
   * Array of {@link PortableTextMarker} with meta data connected to the content.
   * @deprecated will be removed in the next major version of Sanity Studio.
   * Use the `renderBlock` interface instead.
   */
  markers?: PortableTextMarker[];
  /**
   * Returns changes from the underlying editor
   */
  onEditorChange?: (change: EditorChange, editor: PortableTextEditor) => void;
  /**
   * Optional callback for when the editor goes into or out of full screen mode
   * @hidden
   * @beta
   */
  onFullScreenChange?: (isFullScreen: boolean) => void;
  /**
   * Custom copy function
   */
  onCopy?: OnCopyFn;
  /**
   * Custom paste function
   */
  onPaste?: OnPasteFn;
  /**
   * Function to render custom block actions
   * @deprecated will be removed in the next major version of Sanity Studio.
   * Use the `renderBlock` interface instead.
   */
  renderBlockActions?: RenderBlockActionsCallback;
  /**
   * Function to render custom markers
   * @deprecated will be removed in the next major version of Sanity Studio.
   * Use the `renderBlock` interface instead.
   */
  renderCustomMarkers?: RenderCustomMarkers;
  /**
   * Array of {@link RangeDecoration} that can be used to decorate the content.
   */
  rangeDecorations?: RangeDecoration[];
}
/**
 * @hidden
 * @public */
type InputProps = ArrayOfObjectsInputProps | ArrayOfPrimitivesInputProps | BooleanInputProps | NumberInputProps | ObjectInputProps | ObjectInputProps<CrossDatasetReferenceValue> | ObjectInputProps<FileValue> | ObjectInputProps<GeopointValue> | ObjectInputProps<ImageValue> | ObjectInputProps<ReferenceValue> | ObjectInputProps<SlugValue> | PortableTextInputProps | StringInputProps;
/**
 * Data passed to the `onPaste` handler when content is pasted into a
 * Portable Text editor in Sanity Studio.
 *
 * @beta
 * @remarks
 * This is Studio's own version of the editor's `PasteData` type.
 * The `schemaTypes` field contains Sanity-specific
 * `PortableTextMemberSchemaTypes` instead of the editor's `EditorSchema`.
 */
type PasteData$1 = Omit<PasteData, 'schemaTypes'> & {
  schemaTypes: PortableTextMemberSchemaTypes;
};
/**
 * Custom paste handler for Portable Text in Sanity Studio.
 *
 * @beta
 * @remarks
 * It is encouraged not to return `Promise<undefined>` from the `OnPasteFn` as
 * a mechanism to fall back to the native paste behaviour. This doesn't work in
 * all cases. Always return plain `undefined` if possible.
 */
type OnPasteFn = (data: PasteData$1) => OnPasteResultOrPromise;
/**
 * Studio-owned change types emitted by the Portable Text editor.
 *
 * These types mirror the editor's internal event types but are owned by Studio
 * to decouple Studio's public callback interface from the editor's internals.
 * The `EditorChangePlugin` in `PortableTextInput.tsx` translates
 * `EditorEmittedEvent`s into these change types.
 *
 * `error` and `loading` stay in the union for compatibility. `@portabletext/editor`
 * v8 no longer emits the events that produced them.
 *
 * @beta
 */
type EditorChange = {
  type: 'blur';
  event: FocusEvent<HTMLDivElement>;
} | {
  type: 'error';
  name: string;
  level: 'warning' | 'error';
  description: string;
  data?: unknown;
} | {
  type: 'focus';
  event: FocusEvent<HTMLDivElement>;
} | {
  type: 'invalidValue';
  resolution: InvalidValueResolution | null;
  value: PortableTextBlock[] | undefined;
} | {
  type: 'loading';
  isLoading: boolean;
} | {
  type: 'mutation';
  patches: Patch[];
  snapshot: PortableTextBlock[] | undefined;
} | {
  type: 'patch';
  patch: Patch;
} | {
  type: 'ready';
} | {
  type: 'connection';
  value: 'online' | 'offline';
} | {
  type: 'redo';
  patches: Patch[];
  snapshot: PortableTextBlock[] | undefined;
} | {
  type: 'selection';
  selection: EditorSelection;
} | {
  type: 'undo';
  patches: Patch[];
  snapshot: PortableTextBlock[] | undefined;
} | {
  type: 'unset';
  previousValue: PortableTextBlock[];
} | {
  type: 'value';
  value: PortableTextBlock[] | undefined;
};
/** @internal @deprecated DO NOT USE */
interface FieldCommentsProps {
  hasComments: boolean;
  button: ReactNode;
  isAddingComment: boolean;
}
/**
 * @hidden
 * @public */
interface BaseFieldProps {
  /** @beta */
  actions?: DocumentFieldAction[];
  /** @internal @deprecated DO NOT USE */
  __internal_comments?: FieldCommentsProps;
  /** @internal @deprecated ONLY USED BY AI ASSIST PLUGIN */
  __internal_slot?: ReactNode;
  schemaType: SchemaType;
  title: string | undefined;
  description: string | undefined;
  /**
   * @hidden
   * @beta */
  presence: FormNodePresence[];
  validation: FormNodeValidation[];
  level: number;
  inputId: string;
  value: unknown | undefined;
  path: Path;
  name: string;
  index: number;
  changed: boolean;
  /**
   * Whether the field's value differs to the document's base variant.
   */
  changedFromBaseVariant: boolean;
  children: ReactNode;
  version?: string;
  renderDefault: (props: FieldProps) => React.JSX.Element;
}
/**
 * @hidden
 * @public */
interface ObjectFieldProps<T = Record<string, unknown>> extends BaseFieldProps {
  schemaType: ObjectSchemaType;
  value: T | undefined;
  collapsed?: boolean;
  collapsible?: boolean;
  onCollapse: () => void;
  onExpand: () => void;
  open: boolean;
  onClose: () => void;
  onOpen: () => void;
  inputProps: ObjectInputProps<T>;
}
/**
 * @hidden
 * @public */
interface ArrayFieldProps extends BaseFieldProps {
  schemaType: ArraySchemaType;
  value: unknown[] | undefined;
  collapsed?: boolean;
  collapsible?: boolean;
  onCollapse: () => void;
  onExpand: () => void;
  inputProps: ArrayOfObjectsInputProps;
}
/**
 * @hidden
 * @public */
interface ArrayOfPrimitivesFieldProps extends BaseFieldProps {
  schemaType: ArraySchemaType;
  value: unknown[] | undefined;
  collapsed?: boolean;
  collapsible?: boolean;
  onCollapse: () => void;
  onExpand: () => void;
  inputProps: ArrayOfPrimitivesInputProps;
}
/**
 * @hidden
 * @public */
interface NumberFieldProps extends BaseFieldProps {
  schemaType: NumberSchemaType;
  value: number | undefined;
  inputProps: NumberInputProps;
}
/**
 * @hidden
 * @public */
interface BooleanFieldProps extends BaseFieldProps {
  schemaType: BooleanSchemaType;
  value: boolean | undefined;
  inputProps: BooleanInputProps;
}
/**
 * @hidden
 * @public */
interface StringFieldProps extends BaseFieldProps {
  schemaType: StringSchemaType;
  value: string | undefined;
  inputProps: StringInputProps;
}
/** @internal */
type PrimitiveFieldProps = NumberFieldProps | BooleanFieldProps | StringFieldProps;
/**
 * @hidden
 * @public */
type FieldProps = ObjectFieldProps | ObjectFieldProps<CrossDatasetReferenceValue> | ObjectFieldProps<FileValue> | ObjectFieldProps<GeopointValue> | ObjectFieldProps<ImageValue> | ObjectFieldProps<ReferenceValue> | ObjectFieldProps<SlugValue> | ArrayFieldProps | NumberFieldProps | BooleanFieldProps | StringFieldProps;
/**
 * Function for rendering custom block markers
 *
 * @public
 * @hidden
 * @deprecated use `renderBlock`, `renderInlineBlock`, `renderAnnotation` interfaces instead
 */
type RenderCustomMarkers = (markers: PortableTextMarker[]) => ReactNode;
/**
 * Props for rendering block actions
 *
 * @public
 * @hidden
 * @deprecated use `renderBlock`, `renderInlineBlock`, `renderAnnotation` interfaces instead
 */
interface RenderBlockActionsProps {
  block: PortableTextBlock;
  value: PortableTextBlock[] | undefined;
  set: (block: PortableTextBlock) => void;
  unset: () => void;
  insert: (block: PortableTextBlock | PortableTextBlock[]) => void;
}
/**
 * Function for rendering custom block actions
 *
 * @public
 * @hidden
 * @deprecated use `renderBlock`, `renderInlineBlock`, `renderAnnotation` interfaces instead
 */
type RenderBlockActionsCallback = (props: RenderBlockActionsProps) => ReactNode;
/**
 * A generic marker for attaching metadata to specific nodes of the Portable Text input.
 *
 * @public
 * @hidden
 * @deprecated use `renderBlock`, `renderInlineBlock`, `renderAnnotation` interfaces instead
 * @param type - a type name for this marker
 * @param data - some data connected to this marker
 * @param path - the path to the Portable Text content connected to this marker
 */
interface PortableTextMarker {
  type: string;
  data?: unknown;
  path: Path;
}
/**
 * Component for rendering custom block markers
 *
 * @public
 * @hidden
 * @deprecated use `renderBlock`, `renderInlineBlock`, `renderAnnotation` interfaces instead
 */
type FormBuilderCustomMarkersComponent = ComponentType<{
  markers: PortableTextMarker[];
}>;
/**
 *
 * @hidden
 * @beta
 */
type FormBuilderMarkersComponent = ComponentType<{
  markers: PortableTextMarker[];
  renderCustomMarkers?: RenderCustomMarkers;
  validation: FormNodeValidation[];
}>;
/**
 *
 * @hidden
 * @beta
 */
type FormBuilderInputComponentMap = Record<string, {
  field?: ComponentType<FieldProps>;
  item?: ComponentType<ItemProps>;
  input?: ComponentType<InputProps>;
  preview?: ComponentType<PreviewProps>;
}>;
/**
 * These are the props an implementation of the ArrayFunctions component will receive
 *
 *
 * @hidden
 * @beta
 */
interface ArrayInputFunctionsProps<Item, SchemaType extends ArraySchemaType> {
  children?: ReactNode;
  onItemAppend: (itemValue: Item) => void;
  onChange: (event: PatchEvent) => void;
  onValueCreate: (type: SchemaType) => Item;
  onItemPrepend: (itemValue: Item) => void;
  path: Path;
  readOnly?: boolean;
  schemaType: SchemaType;
  value?: Item[];
}
/**
 * @internal
 */
interface FormBuilderFilterFieldFn {
  (type: ObjectSchemaType, field: ObjectField, selectedLanguageIds: string[]): boolean;
}
/**
 * Login methods that may be used for Studio authentication.
 *
 * @public
 */
type LoginMethod = 'dual' | 'cookie' | 'token';
/**
 * Login methods that acknowledge cookieless authentication tokens.
 *
 * @internal
 * @hidden
 */
type CookielessCompatibleLoginMethod = Extract<LoginMethod, 'dual' | 'token'>;
/**
 * Authentication options
 *
 * @public
 */
interface AuthConfig {
  /**
   * Login method to use for the studio. Can be one of:
   * - `dual` (default) - attempt to use cookies where possible, falling back to
   *   storing authentication token in `localStorage` otherwise
   * - `cookie` - explicitly disable `localStorage` method, relying only on cookies. May fail due
   *   to cookies being treated as third-party cookies in some browsers, thus the default is `dual`.
   * - `token` - explicitly disable cookies, relying only on `localStorage` method
   */
  loginMethod?: LoginMethod;
  /**
   * If true, the "Choose login provider" (eg "Google, "GitHub", "E-mail/password") screen
   * will be skipped if only a single provider is configured in the `providers` array -
   * instead it will redirect unauthenticated users straight to the authentication URL.
   */
  redirectOnSingle?: boolean;
  /**
   * Array of authentication providers to use, or a function that takes an array of default
   * authentication providers (fetched from the Sanity API) and should return a new list of
   * providers. This can be used to selectively replace, add or remove providers from the
   * list of choices.
   *
   * @remarks If a static array of providers is provided it will replace the default
   * providers with the ones specified.
   *
   * If not set, the default providers will be used.
   */
  providers?: AuthProvider[] | ((prev: AuthProvider[]) => AuthProvider[] | Promise<AuthProvider[]>);
  /**
   * The API hostname for requests. Should usually be left undefined,
   * but can be set if using custom cname for API domain.
   */
  apiHost?: string;
}
/**
 * A provider of authentication.
 *
 * By default, a list of providers for a project will be fetched from the
 * {@link https://api.sanity.io/v1/auth/providers | Sanity API}, but you may choose to limit this
 * list by explicitly defining the providers you want to allow, or add additional custom providers
 * that conforms to the authentication provider specification outlined in
 * {@link https://www.sanity.io/docs/third-party-login | the documentation}.
 *
 * @public
 */
interface AuthProvider {
  /**
   * URL-friendly identifier/name for the provider, eg `github`
   */
  name: string;
  /**
   * Human friendly title for the provider, eg `GitHub`
   */
  title: string;
  /**
   * URL for the authentication endpoint that will trigger the authentication flow
   */
  url: string;
  /**
   * URL for a logo to display next to the provider in the login screen
   */
  logo?: string;
}
type AuthProbeResult = {
  authenticated: false;
} | {
  authenticated: true;
  id: string;
};
/**
 * The interface used by the Studio that produces a `SanityClient` and
 * `CurrentUser` that gets passed to the resulting `Workspace`s and `Source`s.
 *
 * NOTE: This interface is primarily for internal use. Refer to
 * `createAuthStore` instead.
 *
 * @beta
 * @hidden
 */
interface AuthStore {
  /**
   * Emits `AuthState`s. This should update when the user's auth state changes.
   * E.g. After a login, a new `AuthState` could be emitted with a non-null
   * `currentUser` and `authenticated: true`
   *
   * NOTE: all auth store implementations should emit on subscribe using
   * something like shareReplay(1) to ensure all new subscribers get an
   * `AuthState` value on subscribe
   */
  state: Observable<AuthState>;
  /**
   * Emits auth tokens, or `null` if not configured to use them or they do not exist
   */
  token?: Observable<string | null>;
  /**
   * Custom auth stores are expected to implement a UI that initiates the user's
   * authentication. For the typical case in `createAuthStore`, this means
   * loading the providers and showing them as options to the user.
   */
  LoginComponent?: ComponentType<LoginComponentProps>;
  /**
   * Custom auth stores can implement a function that runs when the user logs
   * out. The implementation is expected to remove all credentials both locally
   * and on the server.
   */
  logout?: () => Promise<void>;
  /**
   * Custom auth stores can implement a function that is designated to run when
   * the Studio loads (e.g. to trade a session ID for a token in cookie-less
   * mode). Within the Studio, this is called within the `AuthBoundary`.
   *
   * The returned promise MUST always settle — promptly when there is no
   * callback to process: the `AuthBoundary` holds its loading screen on an
   * unauthenticated state until it does (the state may be a stale
   * pre-exchange probe result). A promise that never settles leaves
   * logged-out users on the loading screen indefinitely.
   */
  handleCallbackUrl?: () => Promise<HandleCallbackResult>;
}
/**
 * The unit an `AuthStore` emits to determine the user's authentication state.
 *
 * @beta
 * @hidden
 */
interface AuthState {
  /**
   * Similar to a logged-in flag. This state is used in places like the
   * `AuthBoundary` to determine whether or not it should render the
   * `NotAuthenticatedComponent`. Implementers may choose to set this to `true`
   * while also also emitting a `currentUser` of `null` if a `null` user is
   * accepted (e.g. a project that doesn't require a login)
   */
  authenticated: boolean;
  /**
   * The value of the user logged in or `null` if none is provided
   */
  currentUser: CurrentUser | null;
  /**
   * A client that is expected to be pre-configured to allow for any downstream
   * requests in the Studio
   */
  client: SanityClient;
}
/**
 * @beta
 * @hidden
 */
type LoginComponentProps = {
  projectId: string;
  /** @deprecated use redirectPath instead */
  basePath: string;
  redirectPath?: string;
  /**
   * Invoked when the user chooses to switch workspaces from the login screen
   * (e.g. when the active workspace has no usable login providers). Only
   * provided when more than one workspace is available to switch to.
   */
  onChooseAnotherWorkspace?: () => void;
} | {
  projectId: string;
  redirectPath: string;
  /** @deprecated use redirectPath instead */
  basePath?: string;
  /**
   * Invoked when the user chooses to switch workspaces from the login screen
   * (e.g. when the active workspace has no usable login providers). Only
   * provided when more than one workspace is available to switch to.
   */
  onChooseAnotherWorkspace?: () => void;
};
/**
 * Result returned from `handleCallbackUrl` describing what happened during
 * the auth callback flow. Used for telemetry, diagnostics, and error handling
 * in the AuthBoundary.
 *
 * @internal
 */
interface HandleCallbackResult {
  /** The login method configured for this auth store (e.g. `'cookie'` or `'token'`). */
  loginMethod: LoginMethod;
  /**
   * Which auth flow was taken:
   * - `'already-authenticated'`: No sid in hash - user was already authenticated or not.
   * - `'exchange'`: sid was present, went through /auth/exchange + probe flow.
   */
  flow: 'already-authenticated' | 'exchange';
  /** Whether the auth flow completed successfully. */
  success: boolean;
  /** Total wall-clock time for the callback handling, in milliseconds. */
  durationMs: number;
  /** Time spent on the /auth/exchange call specifically. Only set for `'exchange'` flow. */
  exchangeDurationMs?: number;
  /** Time spent on the /users/me probe calls. Only set for `'exchange'` flow. */
  probeDurationMs?: number;
  /** Which auth method was selected by the probes. Only set when `success` is `true` and flow is `'exchange'`. */
  authMethod?: 'cookie' | 'token';
  /**
   * Time from applying the exchanged credential until the post-exchange
   * state was probed and emitted. Only set for the successful `'exchange'`
   * flow, whose resolution is deferred until the state reflects the exchange.
   * Not included in `durationMs`, which keeps its original meaning
   * (exchange + probe) for cross-release comparability.
   */
  stateSettleDurationMs?: number;
  /**
   * Whether the post-exchange probe timed out before completing. The
   * callback resolved anyway so the UI can't hang, but the current auth
   * state may not reflect the exchange yet.
   */
  stateSettleTimedOut?: boolean;
  /** Human-readable reason for failure. Only set when `success` is `false`. */
  failureReason?: string;
  /**
   * Structured error for the AuthBoundary to render appropriate UI.
   * Only set when `success` is `false` and flow is `'exchange'`.
   *
   * - `'cookie-blocked'`: cookie-only mode and the cookie probe failed.
   *   The browser likely has strict cookie policies.
   * - `'auth-failed'`: all probe methods failed. The user should retry.
   */
  error?: {
    type: 'cookie-blocked' | 'auth-failed';
    message: string;
  };
}
/**
 * @internal
 */
interface SearchFieldDefinition {
  documentTypes: string[];
  fieldPath: string;
  filterName: string;
  id: string;
  name: string;
  title: string;
  titlePath: string[];
  type: string;
}
/**
 * @internal
 */
type SearchFieldDefinitionDictionary = Record<SearchFieldDefinition['id'], SearchFieldDefinition>;
/**
 * @alpha
 */
type I18nSearchOperatorNameKey = `search.operator.${Lowercase<string>}.name`;
/**
 * @alpha
 */
type I18nSearchOperatorDescriptionKey = `search.operator.${Lowercase<string>}.description`;
/**
 * @alpha
 */
interface SearchOperatorBase {
  /** i18n resource key for the "name", eg `quantity is` or `contains` */
  nameKey: I18nSearchOperatorNameKey;
  /** i18n resource key for the "name", eg `quantity is` or `contains` */
  descriptionKey: I18nSearchOperatorDescriptionKey;
  /** icon for explaining the operator (React component) */
  icon?: ComponentType;
  /** name/type of operator, eg `arrayCountEqual` or `numberGt` */
  type: string;
}
/**
 * @alpha
 */
type SearchOperatorInput<TValue> = ComponentType<OperatorInputComponentProps<TValue>>;
/**
 * @alpha
 */
type SearchOperatorButtonValue<TValue> = ComponentType<OperatorButtonValueComponentProps<TValue>>;
/**
 * @alpha
 */
interface OperatorButtonValueComponentProps<T> {
  value: T;
}
/**
 * @alpha
 */
interface OperatorInputComponentProps<T> {
  fieldDefinition?: SearchFieldDefinition;
  onChange: (value: T | null) => void;
  value: T | null;
}
/**
 * @alpha
 */
type SearchOperatorParams<TValue> = {
  fieldPath?: string;
  value?: TValue;
};
/**
 * @alpha
 */
type ValuelessSearchOperatorParams = {
  fieldPath?: string;
};
/**
 * @alpha
 */
type SearchValueFormatterContext = {
  i18n: LocaleSource;
};
/**
 * @alpha
 */
interface SearchOperatorBuilder<TType extends string, TValue> extends SearchOperatorBase {
  buttonValueComponent?: SearchOperatorButtonValue<TValue>;
  groqFilter: (params: SearchOperatorParams<TValue>) => string | null;
  initialValue: TValue | null;
  inputComponent: SearchOperatorInput<TValue>;
  type: TType;
}
/**
 * @alpha
 */
interface ValuelessSearchOperatorBuilder<TType extends string> extends SearchOperatorBase {
  buttonValueComponent?: never;
  groqFilter: (params: ValuelessSearchOperatorParams) => string | null;
  initialValue?: never;
  inputComponent?: never;
  type: TType;
}
/**
 * @alpha
 */
declare function defineSearchOperator<TType extends string, TValue extends unknown | never, TOperatorSnippet extends {
  type: TType;
  inputComponent?: never;
} | {
  type: TType;
  inputComponent: SearchOperatorInput<TValue>;
}>(definition: TOperatorSnippet extends {
  type: TType;
  inputComponent: SearchOperatorInput<TValue>;
} ? SearchOperatorBuilder<TType, TValue> : ValuelessSearchOperatorBuilder<TType>): typeof definition;
interface OperatorDateDirectionValue {
  includeTime?: boolean;
  date: string | null;
}
interface OperatorDateEqualValue {
  includeTime?: boolean;
  date: string | null;
}
interface OperatorDateRangeValue {
  to: string | null;
  from: string | null;
  includeTime?: boolean;
}
interface OperatorDateLastValue {
  unit: 'day' | 'month' | 'year';
  unitValue: number | null;
}
interface OperatorNumberRangeValue {
  from: number | null;
  to: number | null;
}
declare const searchOperators: {
  dateAfter: SearchOperatorBuilder<"dateAfter", OperatorDateDirectionValue> | ValuelessSearchOperatorBuilder<"dateAfter">;
  dateBefore: SearchOperatorBuilder<"dateBefore", OperatorDateDirectionValue> | ValuelessSearchOperatorBuilder<"dateBefore">;
  dateEqual: SearchOperatorBuilder<"dateEqual", OperatorDateEqualValue> | ValuelessSearchOperatorBuilder<"dateEqual">;
  dateLast: SearchOperatorBuilder<"dateLast", OperatorDateLastValue> | ValuelessSearchOperatorBuilder<"dateLast">;
  dateNotEqual: SearchOperatorBuilder<"dateNotEqual", OperatorDateEqualValue> | ValuelessSearchOperatorBuilder<"dateNotEqual">;
  dateRange: SearchOperatorBuilder<"dateRange", OperatorDateRangeValue> | ValuelessSearchOperatorBuilder<"dateRange">;
  dateTimeAfter: SearchOperatorBuilder<"dateTimeAfter", OperatorDateDirectionValue> | ValuelessSearchOperatorBuilder<"dateTimeAfter">;
  dateTimeBefore: SearchOperatorBuilder<"dateTimeBefore", OperatorDateDirectionValue> | ValuelessSearchOperatorBuilder<"dateTimeBefore">;
  dateTimeEqual: SearchOperatorBuilder<"dateTimeEqual", OperatorDateEqualValue> | ValuelessSearchOperatorBuilder<"dateTimeEqual">;
  dateTimeLast: SearchOperatorBuilder<"dateTimeLast", OperatorDateLastValue> | ValuelessSearchOperatorBuilder<"dateTimeLast">;
  dateTimeNotEqual: SearchOperatorBuilder<"dateTimeNotEqual", OperatorDateEqualValue> | ValuelessSearchOperatorBuilder<"dateTimeNotEqual">;
  dateTimeRange: SearchOperatorBuilder<"dateTimeRange", OperatorDateRangeValue> | ValuelessSearchOperatorBuilder<"dateTimeRange">;
  arrayCountEqual: SearchOperatorBuilder<"arrayCountEqual", number> | ValuelessSearchOperatorBuilder<"arrayCountEqual">;
  arrayCountGt: SearchOperatorBuilder<"arrayCountGt", number> | ValuelessSearchOperatorBuilder<"arrayCountGt">;
  arrayCountGte: SearchOperatorBuilder<"arrayCountGte", number> | ValuelessSearchOperatorBuilder<"arrayCountGte">;
  arrayCountLt: SearchOperatorBuilder<"arrayCountLt", number> | ValuelessSearchOperatorBuilder<"arrayCountLt">;
  arrayCountLte: SearchOperatorBuilder<"arrayCountLte", number> | ValuelessSearchOperatorBuilder<"arrayCountLte">;
  arrayCountNotEqual: SearchOperatorBuilder<"arrayCountNotEqual", number> | ValuelessSearchOperatorBuilder<"arrayCountNotEqual">;
  arrayCountRange: SearchOperatorBuilder<"arrayCountRange", OperatorNumberRangeValue> | ValuelessSearchOperatorBuilder<"arrayCountRange">;
  arrayListIncludes: SearchOperatorBuilder<"arrayListIncludes", string | number> | ValuelessSearchOperatorBuilder<"arrayListIncludes">;
  arrayListNotIncludes: SearchOperatorBuilder<"arrayListNotIncludes", string | number> | ValuelessSearchOperatorBuilder<"arrayListNotIncludes">;
  arrayReferenceIncludes: SearchOperatorBuilder<"arrayReferenceIncludes", import("@sanity/types").Reference> | ValuelessSearchOperatorBuilder<"arrayReferenceIncludes">;
  arrayReferenceNotIncludes: SearchOperatorBuilder<"arrayReferenceNotIncludes", import("@sanity/types").Reference> | ValuelessSearchOperatorBuilder<"arrayReferenceNotIncludes">;
  assetFileEqual: SearchOperatorBuilder<"assetFileEqual", import("@sanity/types").Reference> | ValuelessSearchOperatorBuilder<"assetFileEqual">;
  assetFileNotEqual: SearchOperatorBuilder<"assetFileNotEqual", import("@sanity/types").Reference> | ValuelessSearchOperatorBuilder<"assetFileNotEqual">;
  assetImageEqual: SearchOperatorBuilder<"assetImageEqual", import("@sanity/types").Reference> | ValuelessSearchOperatorBuilder<"assetImageEqual">;
  assetImageNotEqual: SearchOperatorBuilder<"assetImageNotEqual", import("@sanity/types").Reference> | ValuelessSearchOperatorBuilder<"assetImageNotEqual">;
  booleanEqual: SearchOperatorBuilder<"booleanEqual", boolean> | ValuelessSearchOperatorBuilder<"booleanEqual">;
  defined: SearchOperatorBuilder<"defined", unknown> | ValuelessSearchOperatorBuilder<"defined">;
  notDefined: SearchOperatorBuilder<"notDefined", unknown> | ValuelessSearchOperatorBuilder<"notDefined">;
  numberEqual: SearchOperatorBuilder<"numberEqual", number> | ValuelessSearchOperatorBuilder<"numberEqual">;
  numberGt: SearchOperatorBuilder<"numberGt", number> | ValuelessSearchOperatorBuilder<"numberGt">;
  numberGte: SearchOperatorBuilder<"numberGte", number> | ValuelessSearchOperatorBuilder<"numberGte">;
  numberLt: SearchOperatorBuilder<"numberLt", number> | ValuelessSearchOperatorBuilder<"numberLt">;
  numberLte: SearchOperatorBuilder<"numberLte", number> | ValuelessSearchOperatorBuilder<"numberLte">;
  numberNotEqual: SearchOperatorBuilder<"numberNotEqual", number> | ValuelessSearchOperatorBuilder<"numberNotEqual">;
  numberRange: SearchOperatorBuilder<"numberRange", OperatorNumberRangeValue> | ValuelessSearchOperatorBuilder<"numberRange">;
  portableTextEqual: SearchOperatorBuilder<"portableTextEqual", string | number> | ValuelessSearchOperatorBuilder<"portableTextEqual">;
  portableTextMatches: SearchOperatorBuilder<"portableTextMatches", string | number> | ValuelessSearchOperatorBuilder<"portableTextMatches">;
  portableTextNotEqual: SearchOperatorBuilder<"portableTextNotEqual", string | number> | ValuelessSearchOperatorBuilder<"portableTextNotEqual">;
  portableTextNotMatches: SearchOperatorBuilder<"portableTextNotMatches", string | number> | ValuelessSearchOperatorBuilder<"portableTextNotMatches">;
  referenceEqual: SearchOperatorBuilder<"referenceEqual", import("@sanity/types").Reference> | ValuelessSearchOperatorBuilder<"referenceEqual">;
  referenceNotEqual: SearchOperatorBuilder<"referenceNotEqual", import("@sanity/types").Reference> | ValuelessSearchOperatorBuilder<"referenceNotEqual">;
  referencesAssetFile: SearchOperatorBuilder<"referencesAssetFile", import("@sanity/types").Reference> | ValuelessSearchOperatorBuilder<"referencesAssetFile">;
  referencesAssetImage: SearchOperatorBuilder<"referencesAssetImage", import("@sanity/types").Reference> | ValuelessSearchOperatorBuilder<"referencesAssetImage">;
  referencesDocument: SearchOperatorBuilder<"referencesDocument", import("@sanity/types").Reference> | ValuelessSearchOperatorBuilder<"referencesDocument">;
  slugEqual: SearchOperatorBuilder<"slugEqual", string | number> | ValuelessSearchOperatorBuilder<"slugEqual">;
  slugMatches: SearchOperatorBuilder<"slugMatches", string | number> | ValuelessSearchOperatorBuilder<"slugMatches">;
  slugNotEqual: SearchOperatorBuilder<"slugNotEqual", string | number> | ValuelessSearchOperatorBuilder<"slugNotEqual">;
  slugNotMatches: SearchOperatorBuilder<"slugNotMatches", string | number> | ValuelessSearchOperatorBuilder<"slugNotMatches">;
  stringEqual: SearchOperatorBuilder<"stringEqual", string | number> | ValuelessSearchOperatorBuilder<"stringEqual">;
  stringListEqual: SearchOperatorBuilder<"stringListEqual", string | number> | ValuelessSearchOperatorBuilder<"stringListEqual">;
  stringListNotEqual: SearchOperatorBuilder<"stringListNotEqual", string | number> | ValuelessSearchOperatorBuilder<"stringListNotEqual">;
  stringMatches: SearchOperatorBuilder<"stringMatches", string | number> | ValuelessSearchOperatorBuilder<"stringMatches">;
  stringNotEqual: SearchOperatorBuilder<"stringNotEqual", string | number> | ValuelessSearchOperatorBuilder<"stringNotEqual">;
  stringNotMatches: SearchOperatorBuilder<"stringNotMatches", string | number> | ValuelessSearchOperatorBuilder<"stringNotMatches">;
};
type DefaultOperators = typeof searchOperators;
/**
 * @alpha
 */
type SearchOperatorType = keyof DefaultOperators;
/**
 * @internal
 */
declare const operatorDefinitions: (SearchOperatorBuilder<"arrayCountEqual", number> | SearchOperatorBuilder<"arrayCountGt", number> | SearchOperatorBuilder<"arrayCountGte", number> | SearchOperatorBuilder<"arrayCountLt", number> | SearchOperatorBuilder<"arrayCountLte", number> | SearchOperatorBuilder<"arrayCountNotEqual", number> | SearchOperatorBuilder<"arrayCountRange", OperatorNumberRangeValue> | SearchOperatorBuilder<"arrayListIncludes", string | number> | SearchOperatorBuilder<"arrayListNotIncludes", string | number> | SearchOperatorBuilder<"arrayReferenceIncludes", import("@sanity/types").Reference> | SearchOperatorBuilder<"arrayReferenceNotIncludes", import("@sanity/types").Reference> | SearchOperatorBuilder<"assetFileEqual", import("@sanity/types").Reference> | SearchOperatorBuilder<"assetFileNotEqual", import("@sanity/types").Reference> | SearchOperatorBuilder<"assetImageEqual", import("@sanity/types").Reference> | SearchOperatorBuilder<"assetImageNotEqual", import("@sanity/types").Reference> | SearchOperatorBuilder<"booleanEqual", boolean> | SearchOperatorBuilder<"dateAfter", OperatorDateDirectionValue> | SearchOperatorBuilder<"dateBefore", OperatorDateDirectionValue> | SearchOperatorBuilder<"dateEqual", OperatorDateEqualValue> | SearchOperatorBuilder<"dateLast", OperatorDateLastValue> | SearchOperatorBuilder<"dateNotEqual", OperatorDateEqualValue> | SearchOperatorBuilder<"dateRange", OperatorDateRangeValue> | SearchOperatorBuilder<"dateTimeAfter", OperatorDateDirectionValue> | SearchOperatorBuilder<"dateTimeBefore", OperatorDateDirectionValue> | SearchOperatorBuilder<"dateTimeEqual", OperatorDateEqualValue> | SearchOperatorBuilder<"dateTimeLast", OperatorDateLastValue> | SearchOperatorBuilder<"dateTimeNotEqual", OperatorDateEqualValue> | SearchOperatorBuilder<"dateTimeRange", OperatorDateRangeValue> | SearchOperatorBuilder<"defined", unknown> | SearchOperatorBuilder<"notDefined", unknown> | SearchOperatorBuilder<"numberEqual", number> | SearchOperatorBuilder<"numberGt", number> | SearchOperatorBuilder<"numberGte", number> | SearchOperatorBuilder<"numberLt", number> | SearchOperatorBuilder<"numberLte", number> | SearchOperatorBuilder<"numberNotEqual", number> | SearchOperatorBuilder<"numberRange", OperatorNumberRangeValue> | SearchOperatorBuilder<"portableTextEqual", string | number> | SearchOperatorBuilder<"portableTextMatches", string | number> | SearchOperatorBuilder<"portableTextNotEqual", string | number> | SearchOperatorBuilder<"portableTextNotMatches", string | number> | SearchOperatorBuilder<"referenceEqual", import("@sanity/types").Reference> | SearchOperatorBuilder<"referenceNotEqual", import("@sanity/types").Reference> | SearchOperatorBuilder<"referencesAssetFile", import("@sanity/types").Reference> | SearchOperatorBuilder<"referencesAssetImage", import("@sanity/types").Reference> | SearchOperatorBuilder<"referencesDocument", import("@sanity/types").Reference> | SearchOperatorBuilder<"slugEqual", string | number> | SearchOperatorBuilder<"slugMatches", string | number> | SearchOperatorBuilder<"slugNotEqual", string | number> | SearchOperatorBuilder<"slugNotMatches", string | number> | SearchOperatorBuilder<"stringEqual", string | number> | SearchOperatorBuilder<"stringListEqual", string | number> | SearchOperatorBuilder<"stringListNotEqual", string | number> | SearchOperatorBuilder<"stringMatches", string | number> | SearchOperatorBuilder<"stringNotEqual", string | number> | SearchOperatorBuilder<"stringNotMatches", string | number> | ValuelessSearchOperatorBuilder<"arrayCountEqual"> | ValuelessSearchOperatorBuilder<"arrayCountGt"> | ValuelessSearchOperatorBuilder<"arrayCountGte"> | ValuelessSearchOperatorBuilder<"arrayCountLt"> | ValuelessSearchOperatorBuilder<"arrayCountLte"> | ValuelessSearchOperatorBuilder<"arrayCountNotEqual"> | ValuelessSearchOperatorBuilder<"arrayCountRange"> | ValuelessSearchOperatorBuilder<"arrayListIncludes"> | ValuelessSearchOperatorBuilder<"arrayListNotIncludes"> | ValuelessSearchOperatorBuilder<"arrayReferenceIncludes"> | ValuelessSearchOperatorBuilder<"arrayReferenceNotIncludes"> | ValuelessSearchOperatorBuilder<"assetFileEqual"> | ValuelessSearchOperatorBuilder<"assetFileNotEqual"> | ValuelessSearchOperatorBuilder<"assetImageEqual"> | ValuelessSearchOperatorBuilder<"assetImageNotEqual"> | ValuelessSearchOperatorBuilder<"booleanEqual"> | ValuelessSearchOperatorBuilder<"dateAfter"> | ValuelessSearchOperatorBuilder<"dateBefore"> | ValuelessSearchOperatorBuilder<"dateEqual"> | ValuelessSearchOperatorBuilder<"dateLast"> | ValuelessSearchOperatorBuilder<"dateNotEqual"> | ValuelessSearchOperatorBuilder<"dateRange"> | ValuelessSearchOperatorBuilder<"dateTimeAfter"> | ValuelessSearchOperatorBuilder<"dateTimeBefore"> | ValuelessSearchOperatorBuilder<"dateTimeEqual"> | ValuelessSearchOperatorBuilder<"dateTimeLast"> | ValuelessSearchOperatorBuilder<"dateTimeNotEqual"> | ValuelessSearchOperatorBuilder<"dateTimeRange"> | ValuelessSearchOperatorBuilder<"defined"> | ValuelessSearchOperatorBuilder<"notDefined"> | ValuelessSearchOperatorBuilder<"numberEqual"> | ValuelessSearchOperatorBuilder<"numberGt"> | ValuelessSearchOperatorBuilder<"numberGte"> | ValuelessSearchOperatorBuilder<"numberLt"> | ValuelessSearchOperatorBuilder<"numberLte"> | ValuelessSearchOperatorBuilder<"numberNotEqual"> | ValuelessSearchOperatorBuilder<"numberRange"> | ValuelessSearchOperatorBuilder<"portableTextEqual"> | ValuelessSearchOperatorBuilder<"portableTextMatches"> | ValuelessSearchOperatorBuilder<"portableTextNotEqual"> | ValuelessSearchOperatorBuilder<"portableTextNotMatches"> | ValuelessSearchOperatorBuilder<"referenceEqual"> | ValuelessSearchOperatorBuilder<"referenceNotEqual"> | ValuelessSearchOperatorBuilder<"referencesAssetFile"> | ValuelessSearchOperatorBuilder<"referencesAssetImage"> | ValuelessSearchOperatorBuilder<"referencesDocument"> | ValuelessSearchOperatorBuilder<"slugEqual"> | ValuelessSearchOperatorBuilder<"slugMatches"> | ValuelessSearchOperatorBuilder<"slugNotEqual"> | ValuelessSearchOperatorBuilder<"slugNotMatches"> | ValuelessSearchOperatorBuilder<"stringEqual"> | ValuelessSearchOperatorBuilder<"stringListEqual"> | ValuelessSearchOperatorBuilder<"stringListNotEqual"> | ValuelessSearchOperatorBuilder<"stringMatches"> | ValuelessSearchOperatorBuilder<"stringNotEqual"> | ValuelessSearchOperatorBuilder<"stringNotMatches">)[];
type Operator<TOperators = string> = OperatorDivider | OperatorItem<TOperators>;
type OperatorDivider = {
  type: 'divider';
};
type OperatorItem<TOperators = string> = {
  name: TOperators;
  type: 'item';
};
interface SearchFilterBaseDefinition<TOperators> {
  description?: string;
  icon: ComponentType;
  name: string;
  operators: Operator<TOperators>[];
}
interface SearchFilterFieldDefinition<TOperators = string> extends SearchFilterBaseDefinition<TOperators> {
  fieldType: IntrinsicTypeName;
  type: 'field';
}
interface SearchFilterPinnedDefinition<TOperators = string> extends SearchFilterBaseDefinition<TOperators> {
  fieldPath?: string;
  group?: string;
  title: string;
  type: 'pinned';
}
/**
 * @beta
 */
type SearchFilterDefinition<TOperators = string> = SearchFilterFieldDefinition<TOperators> | SearchFilterPinnedDefinition<TOperators>;
/**
 * @alpha
 */
declare function defineSearchFilter<TOperators = SearchOperatorType>(filterDef: SearchFilterDefinition<TOperators>): typeof filterDef;
/**
 * @alpha
 */
declare function defineSearchFilterOperators<TOperators = SearchOperatorType>(operators: Operator<TOperators>[]): typeof operators;
/**
 * @internal
 */
type SearchFilterDefinitionDictionary = Record<SearchFilterDefinition['name'], SearchFilterDefinition>;
/** @internal */
interface SearchOperatorDefinition<TValue = any> extends SearchOperatorBase {
  buttonValueComponent?: SearchOperatorButtonValue<TValue>;
  groqFilter: (params: SearchOperatorParams<TValue>) => string | null;
  initialValue?: TValue;
  inputComponent?: SearchOperatorInput<TValue>;
  type: string;
}
/** @internal */
type SearchOperatorDefinitionDictionary = Record<SearchOperatorDefinition['type'], SearchOperatorDefinition>;
/**
 * An initial value template is a template that can be used to create a new documents.
 *
 * This allows a document type to have multiple different starting values while having the same
 * shared schema definition. Using parameters allows for dynamic template values.
 *
 * As the name implies, these are _initial_ values, not _default_ values. The distinction is that
 * the initial value is only set when the document is created - it is not "merged" into existing
 * documents that may lack values for fields.
 *
 * All document types will by default (automatically, behind the scenes) have an initial value
 * template generated for them, which will have the same ID as the schema type name. The value of
 * this template will be the value of the `initialValue` property on the schema type definition,
 * or an empty object if none is set.
 *
 * @public
 */
interface Template<Params = any, Value = any> {
  /**
   * Template ID. Automatically generated templates will have the same ID as the schema type name.
   */
  id: string;
  /**
   * Template title.
   */
  title: string;
  i18n?: I18nTextRecord<'title'>;
  /**
   * Schema type name the template belongs to. For the automatically generated templates,
   * this will be equal to the `id` property.
   */
  schemaType: string;
  /**
   * Template icon. Rendered in places such as the "new document" dialog. Optional.
   * Inferred from the schema type icon if not set.
   */
  icon?: SchemaType['icon'];
  /**
   * Value to use as initial value. Can either be a static object value, or a function that
   * resolves _to_ an object value. If using a function, it can be given a set of parameters,
   * which can then determine the value that is returned.
   */
  value: InitialValueProperty<Params, Value>;
  /**
   * Array of parameters the template accepts. Currently not used (any parameters are accepted),
   * but by defining parameters, the templates that require parameters can be identified and
   * excluded from UIs that do not provide them.
   */
  parameters?: TemplateParameter[];
  /**
   * Template description. Rendered in places such as the "new document" dialog. Optional.
   *
   * @deprecated No longer used
   */
  description?: string;
}
/**
 * A template as produced by configuration resolution.
 *
 * Unlike {@link Template}—the authoring type developers use with the
 * `schema.templates` configuration—a resolved template may carry a `singleton`
 * tag. The tag is set by Studio (never by developers), so it is deliberately
 * omitted from the authoring type.
 *
 * @hidden
 * @beta
 */
interface ResolvedTemplate<Params = any, Value = any> extends Template<Params, Value> {
  /**
   * The singleton definition id this template provides the initial value for.
   *
   * Set on the templates Studio generates for the `document.singletons`
   * configuration. Templates carrying this property are never offered as
   * "create new" options.
   *
   * Only one template may carry a given singleton definition id.
   */
  singleton?: string;
}
/**
 * Parameter for a template. Closely resembles API used to define fields for object schema types.
 * See {@link TemplateFieldDefinition} and {@link TemplateArrayFieldDefinition}
 * @public
 */
type TemplateParameter = TemplateFieldDefinition | TemplateArrayFieldDefinition;
/**
 * @public
 */
interface TypeTarget {
  type: string;
}
/** @public */
interface TemplateReferenceTarget {
  type: 'reference';
  /** Type to reference. See {@link TypeTarget} */
  to: TypeTarget | TypeTarget[];
}
/**
 * Field definition for a template parameter.
 * Closely resembles API used to define fields for object schema types.
 *
 * @public
 */
interface TemplateFieldDefinition {
  /**
   * Parameter name. Must be unique within the template.
   */
  name: string;
  /**
   * Parameter type, eg `string`, `number`, `boolean` etc.
   */
  type: string;
  /**
   * Parameter type. Will be attempted to be automatically set if not given,
   * by title-casing the `name` property.
   */
  title?: string;
  /**
   * Description for the parameter. Optional.
   * May be used in the future to explain the parameter in UIs.
   */
  description?: string;
  /**
   * Optional bag of options for the parameter. Currently unused.
   */
  options?: {
    [key: string]: any;
  };
}
/** @public */
type TemplateArrayFieldDefinition = TemplateFieldDefinition & {
  type: 'array';
  /** Defines items that are definition of. See {@link TemplateReferenceTarget} and {@link TypeTarget} */
  of: (TemplateReferenceTarget | TypeTarget)[];
};
/**
 * Representation of an initial value template _item_
 * Used by the {@link structure.StructureBuilder} class to determine which initial value templates
 * should be available for a structure node, such as a list pane.
 *
 * @public
 */
interface InitialValueTemplateItem extends TemplateItem {
  type: 'initialValueTemplateItem';
  /** ID for this template item */
  id: string;
  /** Initial value template schema type */
  schemaType: string;
}
/**
 * Represents the items that can appear in different parts of the Sanity studio when creating
 * new documents - examples being the "New document" button in the navigation bar,
 * the corresponding button in panes, as well as the "Create new" button on references.
 *
 * Differs from an actual _template_ in that a single template can be pointed at by multiple
 * different items. This is useful when the template can create different values based on
 * passed parameters.
 *
 * @public
 */
interface TemplateItem {
  /**
   * ID for the template. Must be unique within the set of templates.
   */
  templateId: string;
  /**
   * Title for the item.
   * Defaults to the title of the associated template.
   */
  title?: string;
  i18n?: I18nTextRecord<'title'>;
  /**
   * Parameters for the template - an object of any JSON-serializable values
   */
  parameters?: {
    [key: string]: any;
  };
  /**
   * React icon for the item, if any.
   * Defaults to the icon for the associated template.
   */
  icon?: React.ElementType | React.JSX.Element;
  /**
   * Experimental: not fully supported yet
   * Hints at what the document ID for the new document should be.
   * Leave undefined to let the system decide.
   *
   * @experimental
   * @beta
   * @hidden
   */
  initialDocumentId?: string;
  /**
   * @deprecated No longer used anywhere
   * @hidden
   */
  subtitle?: string;
  /**
   * @deprecated No longer used anywhere
   * @hidden
   */
  description?: string;
}
/** @public
 * @deprecated – Will be removed in upcoming major version
 * */
interface StudioTheme extends Omit<RootTheme, 'avatar' | 'button' | 'container' | 'focusRing' | 'input' | 'layer' | 'media' | 'radius' | 'shadows' | 'space' | 'styles' | 'color' | 'fonts'> {
  /** @internal */
  __dark?: boolean;
  /** @internal */
  __legacy?: boolean;
  /**
   * @deprecated this theme property is not configurable within the studio
   */
  avatar?: RootTheme['avatar'];
  /**
   * @deprecated this theme property is not configurable within the studio
   */
  button?: RootTheme['button'];
  /**
   * @deprecated this theme property is not configurable within the studio
   */
  container?: RootTheme['container'];
  /**
   * @deprecated this theme property is not configurable within the studio
   */
  focusRing?: RootTheme['focusRing'];
  /**
   * @deprecated this theme property is not configurable within the studio
   */
  input?: RootTheme['input'];
  /**
   * @deprecated this theme property is not configurable within the studio
   */
  layer?: RootTheme['layer'];
  /**
   * @deprecated this theme property is not configurable within the studio
   */
  media?: RootTheme['media'];
  /**
   * @deprecated this theme property is not configurable within the studio
   */
  radius?: RootTheme['radius'];
  /**
   * @deprecated this theme property is not configurable within the studio
   */
  shadows?: RootTheme['shadows'];
  /**
   * @deprecated this theme property is not configurable within the studio
   */
  space?: RootTheme['space'];
  /**
   * @deprecated this theme property is not configurable within the studio
   */
  styles?: RootTheme['styles'];
  color?: RootTheme['color'];
  fonts?: RootTheme['fonts'];
}
/**
 * Used to specify light or dark mode, or to respect system settings (prefers-color-scheme media
 * query) use 'system'
 * @public
 */
type StudioColorScheme = ThemeColorSchemeKey$1 | 'system';
/**
 * Used to specify light or dark mode, or to respect system settings (prefers-color-scheme media
 * query) use 'system'
 * @public
 * @deprecated Use `StudioColorScheme` instead
 */
type StudioThemeColorSchemeKey = StudioColorScheme;
/**
 * The default theme. This is a proxy to the default theme, in order to lazily initialize it
 * on use and not pay the cost of building the theme on module load.
 *
 * @internal
 * @deprecated Will be removed in upcoming major version.
 * */
declare const defaultTheme: RootTheme;
/** @public */
interface HookCollectionActionHook<Args, State> {
  (args: Args): State | null;
  displayName?: string | undefined;
  action?: string;
}
/** @public */
interface GetHookCollectionStateProps<Args, State> {
  args: Args;
  children: (props: {
    states: State[];
  }) => React.ReactNode;
  hooks: HookCollectionActionHook<Args, State>[];
  /**
   * Force hooks state to reset, this pattern is discouraged and only supported for Document Actions for backwards compatibility.
   */
  resetRef?: React.Ref<() => void>;
}
/**
 * @hidden
 * @beta */
interface DocumentBadgeDescription {
  title?: string;
  label?: string | undefined;
  color?: 'primary' | 'success' | 'warning' | 'danger';
  icon?: ReactNode | ComponentType;
}
/**
 * @hidden
 * @beta */
interface DocumentBadgeProps extends EditStateFor {}
/**
 * @hidden
 * @beta */
interface DocumentBadgeComponent extends HookCollectionActionHook<DocumentBadgeProps, DocumentBadgeDescription> {
  (props: DocumentBadgeProps): DocumentBadgeDescription | null;
}
/** @hidden @beta */
interface DocumentInspectorProps {
  documentId: string;
  documentType: string;
  onClose: () => void;
}
/** @hidden @beta */
type DocumentInspectorComponent = ComponentType<DocumentInspectorProps>;
/** @hidden @beta */
interface DocumentInspectorUseMenuItemProps {
  documentId: string;
  documentType: string;
}
/** @hidden @beta */
interface DocumentInspectorMenuItem {
  hidden?: boolean;
  hotkeys?: string[];
  icon?: ComponentType;
  showAsAction?: boolean;
  status?: ButtonTone;
  title: string;
  tone?: ButtonTone;
}
/** @hidden @beta */
interface DocumentInspector {
  name: string;
  component: DocumentInspectorComponent;
  /**
   * Hook for defining a menu item for the inspector.
   */
  useMenuItem?: (props: DocumentInspectorUseMenuItemProps) => DocumentInspectorMenuItem;
  /**
   * Callback for when the inspector is closed, which can be used to clean up custom document pane
   * parameters.
   */
  onClose?: (ctx: {
    params: Record<string, string | undefined>;
  }) => {
    params: Record<string, string | undefined>;
  };
  /**
   * Callback for when the inspector is opened, which can be used to set custom document pane
   * parameters.
   */
  onOpen?: (ctx: {
    params: Record<string, string | undefined>;
  }) => {
    params: Record<string, string | undefined>;
  };
}
/**
 * Define a document inspector to be used in Sanity configuration.
 *
 * @example
 *
 * ```ts
 * // sanity.config.ts
 *
 * import {RocketIcon} from '@sanity/icons/Rocket'
 * import {defineConfig, defineDocumentInspector} from 'sanity'
 *
 * const customInspector = defineDocumentInspector({
 *   name: 'custom',
 *   useMenuItem: () => ({
 *     icon: RocketIcon,
 *     showAsAction: true,
 *     title: 'Custom'
 *   }),
 *   component: lazy(() => import('./inspectors/custom')),
 * })
 *
 * export default defineConfig({
 *   // ...
 *
 *   document: {
 *     inspectors: (prev) => [customInspector, ...prev],
 *   },
 * })
 * ```
 *
 * @hidden @beta
 * */
declare function defineDocumentInspector(inspector: DocumentInspector): DocumentInspector;
/**
 * @hidden
 * @beta */
interface FormComponents {
  annotation?: ComponentType<BlockAnnotationProps>;
  block?: ComponentType<BlockProps>;
  field?: ComponentType<FieldProps>;
  inlineBlock?: ComponentType<BlockProps>;
  input?: ComponentType<InputProps>;
  item?: ComponentType<ItemProps>;
  preview?: ComponentType<PreviewProps>;
  portableText?: {
    plugins?: ComponentType<PortableTextPluginsProps>;
  };
}
interface ObserveDocumentAPIConfig {
  dataset?: string;
  projectId?: string;
  apiVersion?: string;
}
type DocumentIdSetObserverState = {
  status: 'reconnecting' | 'connected';
  documentIds: string[];
};
/** @internal */
type Id = string;
/**
 * @hidden
 * @beta */
type Previewable = ({
  _id: string;
} | {
  _type: string;
} | {
  _system?: {
    delete: boolean;
  };
} | {
  _ref: string;
  _dataset?: string;
  _projectId?: string;
}) & {
  /**
   * optional object used to attach meta data to the prepared result.
   * currently used to add a flag for the invalid preview error fallback and
   * insufficient permissions fallback
   * @internal
   */
  _internalMeta?: {
    type?: string;
  };
};
/**
 * TODO: unify with content path from `@sanity/types`
 *
 *
 * @hidden
 * @beta
 */
type PreviewPath = FieldName[];
/** @internal */
type Selection = [id: Id, fields: FieldName[]];
/**
 * @hidden
 * @beta */
type FieldName = string;
/** @internal */
interface AvailabilityResponse {
  omitted: {
    id: string;
    reason: 'existence' | 'permission';
  }[];
}
/** @internal */
type AvailabilityReason = 'READABLE' | 'PERMISSION_DENIED' | 'NOT_FOUND';
/**
 * @hidden
 * @beta */
type PreviewableType = SchemaType | CrossDatasetType | GlobalDocumentReferenceType;
/**
 * @hidden
 * @beta */
interface ApiConfig {
  projectId: string;
  dataset: string;
}
/**
 * @hidden
 * @beta */
type DocumentAvailability = {
  available: true;
  reason: 'READABLE';
} | {
  available: false;
  reason: 'PERMISSION_DENIED' | 'NOT_FOUND' | 'VERSION_DELETED';
};
/**
 * @hidden
 * @beta */
interface DraftsModelDocumentAvailability {
  /**
   * document readability for the published document
   */
  published: DocumentAvailability;
  /**
   * document readability for the draft document
   */
  draft: DocumentAvailability;
  /**
   * document readability for the version document
   */
  version?: DocumentAvailability;
}
/**
 * @hidden
 * @beta */
interface DocumentStackAvailability {
  /**
   * Document id
   */
  id: string;
  /**
   * Availability for the document in this stack
   */
  availability: DocumentAvailability;
}
/**
 * @hidden
 * @beta */
interface DraftsModelDocument<T extends SanityDocumentLike = SanityDocumentLike> {
  id: string;
  type: string | null;
  draft: {
    availability: DocumentAvailability;
    snapshot: T | undefined;
  };
  published: {
    availability: DocumentAvailability;
    snapshot: T | undefined;
  };
  version?: {
    availability: DocumentAvailability;
    snapshot: T | undefined;
  };
}
/**
 * Event emitted to notify preview subscribers when they need to refetch a document being previewed
 * - 'connected' will happen when the store is connected to the invalidation channel, both initially and after a reconnect after a connection loss
 * - 'mutation' will happen when a document has been mutated and the store needs to refetch a document
 * @hidden
 * @beta
 */
type InvalidationChannelEvent = {
  type: 'connected';
} | {
  type: 'mutation';
  documentId: string;
  visibility: string;
};
/**
 * @hidden
 * @beta */
interface PreparedSnapshot {
  type?: PreviewableType;
  snapshot: PreviewValue | null | undefined;
}
/** @internal */
type ObserveDocumentTypeFromIdFn = (id: string, apiConfig?: ApiConfig, perspective?: StackablePerspective[], variant?: string) => Observable<string | undefined>;
/**
 * @hidden
 * @beta */
interface ObservePathsFn {
  (value: Previewable, paths: (string | PreviewPath)[], apiConfig?: ApiConfig, perspective?: StackablePerspective[], variant?: string): Observable<PreviewValue | SanityDocumentLike | Reference | string | null>;
}
/**
 * @hidden
 * @beta */
interface ObserveDocumentAvailabilityFn {
  (id: string, options?: {
    version?: string;
  }): Observable<{
    draft: DocumentAvailability;
    published: DocumentAvailability;
    version?: DocumentAvailability;
  }>;
}
/**
 * @hidden
 * @beta */
type ObserveForPreviewFn = (value: Previewable, type: PreviewableType, options?: {
  viewOptions?: PrepareViewOptions;
  perspective?: StackablePerspective[];
  /**
   * The selected editing variant as a bare variant id. When set, preview values are resolved as
   * seen through that variant, on top of the given perspective.
   */
  variant?: string;
  apiConfig?: ApiConfig;
}) => Observable<PreparedSnapshot>;
/**
 * The document preview store supports subscribing to content for previewing purposes.
 * Documents observed by this store will be kept in sync and receive real-time updates from all collaborators,
 * but has no support for optimistic updates, so any local edits will require a server round-trip before becoming visible,
 * which means this store is less suitable for real-time editing scenarios.
 *
 * @hidden
 * @beta */
interface DocumentPreviewStore {
  observePaths: ObservePathsFn;
  observeForPreview: ObserveForPreviewFn;
  observeDocumentTypeFromId: (id: string, apiConfig?: ApiConfig, perspective?: StackablePerspective[], variant?: string) => Observable<string | undefined>;
  observeDocumentSystemFromId: (id: string, apiConfig?: ApiConfig, perspective?: StackablePerspective[], variant?: string) => Observable<DocumentSystem | undefined>;
  /**
   *
   * @hidden
   * @beta
   */
  unstable_observeDocumentPairAvailability: (id: string, options?: {
    version?: string;
  }) => Observable<DraftsModelDocumentAvailability>;
  /**
   *
   * @hidden
   * @beta
   */
  unstable_observeDocumentStackAvailability: (id: string, perspectiveStack: StackablePerspective[]) => Observable<DocumentStackAvailability[]>;
  unstable_observePathsDocumentPair: <T extends SanityDocument = SanityDocument>(id: string, paths: PreviewPath[], options?: {
    version?: string;
  }) => Observable<DraftsModelDocument<T>>;
  /**
   * Observes a set of document IDs that matches the given groq-filter. The document ids are returned in ascending order and will update in real-time
   * Whenever a document appears or disappears from the set, a new array with the updated set of IDs will be pushed to subscribers.
   * The query is performed once, initially, and thereafter the set of ids are patched based on the `appear` and `disappear`
   * transitions on the received listener events.
   * This provides a lightweight way of subscribing to a list of ids for simple cases where you just want to subscribe to a set of documents ids
   * that matches a particular filter.
   *
   * @hidden
   * @beta
   * @param filter - A groq filter to use for the document set
   * @param params - Parameters to use with the groq filter
   * @param options - Options for the observer
   * @param apiVersion - Specify the API version to use for the query
   */
  unstable_observeDocumentIdSet: (filter: string, params?: QueryParams, options?: {
    /**
     * Where to insert new items into the set. Defaults to 'sorted' which is based on the lexicographic order of the id
     */
    insert?: 'sorted' | 'prepend' | 'append';
    apiVersion?: string;
  }) => Observable<DocumentIdSetObserverState>;
  /**
   * Observes the set of version and variant document ids that exist for a given
   * document group id.
   *
   * Unlike `unstable_observeDocumentIdSet`, this does not open a dedicated
   * real-time listener for each published id. Instead, it is driven by the
   * shared global listener and batches the discovery queries for all observed
   * document group ids into a single combined query, returning the ids in
   * ascending order.
   *
   * @hidden
   * @beta
   */
  unstable_observeVersionDocumentIds: (publishedId: string) => Observable<string[]>;
  /**
   * Observes the number of documents of a given schema type under a given perspective. Pass
   * `variant` to count as seen through that editing variant, on top of the given perspective.
   *
   * @hidden
   * @beta
   */
  unstable_observeDocumentCount: (type: string, perspective: StackablePerspective[], options?: {
    tag?: string;
    variant?: string;
  }) => Observable<number>;
  /**
   * Observe a complete document with the given ID
   *
   * @hidden
   * @beta
   */
  unstable_observeDocument: (id: string, clientConfig?: ObserveDocumentAPIConfig) => Observable<SanityDocument | undefined>;
  /**
   * Observe a list of complete documents with the given IDs
   *
   * @hidden
   * @beta
   */
  unstable_observeDocuments: (ids: string[], clientConfig?: ObserveDocumentAPIConfig) => Observable<(SanityDocument | undefined)[]>;
}
/** @internal */
interface DocumentPreviewStoreOptions {
  client: SanityClient;
}
/** @internal */
declare function createDocumentPreviewStore({ client }: DocumentPreviewStoreOptions): DocumentPreviewStore;
/** @internal */
type SourceProviderProps = {
  source: Source;
  children?: ReactNode;
} | {
  name: string;
  children?: ReactNode;
};
/** @internal */
declare function SourceProvider({ children, ...props }: SourceProviderProps): import("react").JSX.Element;
/**
 * @internal
 * @deprecated INTERNAL USE ONLY
 */
declare function useSource(): Source;
/**
 * @hidden
 * @beta */
interface ValidationStatus {
  isValidating: boolean;
  validation: ValidationMarker[];
  revision?: string;
}
/** @beta */
type ValidateDocumentOptions = ValidateDocumentWorkspaceOptions;
/**
 * Validates a document against the schema in the given workspace.
 *
 * @beta
 */
declare function validateDocument(options: ValidateDocumentOptions): Promise<import("@sanity/validation").DocumentValidationMarker[]>;
interface DocumentValidationStatus extends ValidationStatus {
  hasError: boolean;
}
/**
 * A document in a bundle (a set of documents resolved by a GROQ filter, e.g. a release or a
 * variant), along with its validation status. Shared by the release- and variant-specific types.
 *
 * @public
 */
interface BundleDocument {
  memoKey: string;
  isPending?: boolean;
  document: SanityDocument & {
    publishedDocumentExists: boolean;
    draftDocumentExists?: boolean;
  };
  validation: DocumentValidationStatus;
}
/**
 * A single document in a release, along with its validation status.
 * Returned by {@link useReleaseDocuments}.
 *
 * @public
 */
type DocumentInRelease = BundleDocument;
/**
 * @public
 */
interface ReleaseActionProps {
  release: ReleaseDocument;
  documents: DocumentInRelease[];
}
/**
 * @hidden
 * @public
 */
interface ReleaseActionComponent {
  (props: ReleaseActionProps): ReleaseActionDescription;
  displayName?: string;
}
/**
 * @hidden
 * @public
 */
interface ReleaseActionDescription {
  disabled?: boolean;
  icon?: ReactNode | ComponentType;
  label: string;
  onHandle?: () => void;
  title?: ReactNode;
  /**
   * Semantic tone for the action's menu item, so destructive or cautionary custom actions can read
   * as such (e.g. a delete-like action in `critical`). Defaults to `default` when omitted.
   */
  tone?: 'default' | 'primary' | 'positive' | 'caution' | 'critical';
}
/**
 * @hidden
 * @public
 */
type ReleaseActionsContext = ConfigContext & ReleaseActionProps;
/**
 * @hidden
 * @beta */
interface LayoutProps {
  renderDefault: (props: LayoutProps) => React.JSX.Element;
}
/**
 * Props for a `studio.components.provider` component: a middleware for the providers a plugin
 * needs across the whole studio. `StudioProvider` renders it under the studio's own providers
 * and above `StudioLayout`, so a promise created here (for example with react-rx's
 * `useObservablePromise`) and passed down through a context can be `use()`d below without a
 * boundary of its own: a `layout` or `navbar` suspends up to the studio's loading screen, and a
 * tool or its `activeToolLayout` up to the tool's own loading boundary. Keep it small and
 * synchronous, not `lazy()`.
 *
 * @hidden
 * @beta */
interface ProviderProps {
  /** The rest of the studio. Render it through `renderDefault(props)`, which also lets the other
   * providers in the chain wrap it; rendering it directly skips them. */
  children: React.ReactNode;
  renderDefault: (props: ProviderProps) => React.JSX.Element;
}
/**
 * @hidden
 * @beta */
interface LogoProps {
  title: string;
  renderDefault: (props: LogoProps) => React.JSX.Element;
}
interface NavbarActionBase {
  icon?: React.ComponentType;
  location: 'topbar' | 'sidebar';
  name: string;
}
interface ActionWithCustomRender extends NavbarActionBase {
  render: () => React.ReactElement;
}
interface Action extends NavbarActionBase {
  onAction: () => void;
  selected: boolean;
  title: string;
  render?: undefined;
}
/**
 * @internal
 * @beta
 * An internal API for defining actions in the navbar.
 */
type NavbarAction = Action | ActionWithCustomRender;
/**
 * @hidden
 * @beta */
interface NavbarProps {
  renderDefault: (props: NavbarProps) => React.JSX.Element;
  /**
   * @internal
   * @beta */
  __internal_actions?: NavbarAction[];
}
/**
 * @hidden
 * @beta */
interface ActiveToolLayoutProps {
  renderDefault: (props: ActiveToolLayoutProps) => React.JSX.Element;
  activeTool: Tool;
}
/**
 * @hidden
 * @beta */
interface ToolMenuProps {
  activeToolName?: string;
  closeSidebar: () => void;
  context: 'sidebar' | 'topbar';
  isSidebarOpen: boolean;
  tools: Tool[];
  renderDefault: (props: ToolMenuProps) => React.JSX.Element;
}
/**
 * @hidden
 * @beta */
interface StudioComponents {
  layout: ComponentType;
  /**
   * @deprecated Add custom icons on a per-workspace basis by customizing workspace `icon` instead.
   * @see {@link https://www.sanity.io/docs/workspaces}
   */
  logo: ComponentType<Omit<LogoProps, 'renderDefault'>>;
  navbar: ComponentType<Omit<NavbarProps, 'renderDefault'>>;
  toolMenu: ComponentType<Omit<ToolMenuProps, 'renderDefault'>>;
}
/**
 * @hidden
 * @beta */
interface StudioComponentsPluginOptions {
  activeToolLayout?: ComponentType<ActiveToolLayoutProps>;
  layout?: ComponentType<LayoutProps>;
  /**
   * @deprecated Add custom icons on a per-workspace basis by customizing workspace `icon` instead.
   * @see {@link https://www.sanity.io/docs/workspaces}
   */
  logo?: ComponentType<LogoProps>;
  navbar?: ComponentType<NavbarProps>;
  provider?: ComponentType<ProviderProps>;
  toolMenu?: ComponentType<ToolMenuProps>;
}
/**
 * @hidden
 * @beta
 */
interface ActionComponent<ActionProps, ActionDescription> {
  (props: ActionProps): ActionDescription | null;
}
/**
 * @hidden
 * @beta
 */
interface BaseActionDescription {
  disabled?: boolean;
  icon?: ReactNode | ComponentType;
  label: string;
  onHandle?: () => void;
  title?: ReactNode;
  tone?: ButtonTone;
  shortcut?: string | null;
  dialog?: unknown;
}
/**
 * @hidden
 * @beta
 */
interface GroupableActionDescription<GroupType = unknown> extends BaseActionDescription {
  group?: GroupType[];
}
/**
 * @hidden
 * @beta
 */
type AssetSourceResolver = ComposableOption<AssetSource[], ConfigContext>;
/**
 * @public
 */
interface SanityFormConfig {
  /**
   * these have not been migrated over
   *
   *
   * @hidden
   * @beta
   */
  unstable?: {
    CustomMarkers?: FormBuilderCustomMarkersComponent;
    Markers?: FormBuilderMarkersComponent;
  };
  /**
   * Components for the form.
   * @hidden
   * @beta
   */
  components?: FormComponents;
  /**
   * Array-related functionality.
   * @hidden
   * @beta
   */
  arrays?: {
    /**
     * Renders long arrays with a limited number of items, collapsing the rest behind a
     * "show all items" toggle so that a single long array doesn't push the rest of the
     * document form out of view.
     */
    collapseItems?: {
      /** @defaultValue `true` */
      enabled?: boolean;
      /** @defaultValue `4` */
      limit?: number;
    };
  };
  file?: {
    /**
     * @hidden
     * @beta
     */
    assetSources?: AssetSource[] | AssetSourceResolver;
    directUploads?: boolean;
  };
  /**
   * @hidden
   * @beta
   */
  image?: {
    assetSources?: AssetSource[] | AssetSourceResolver;
    directUploads?: boolean;
  };
}
/** @internal */
interface FormBuilderComponentResolverContext extends ConfigContext {
  schemaType: SchemaType;
}
/**
 * A tool can be thought of as a top-level "view" or "app".
 * They are available through the global menu bar, and has a URL route associated with them.
 *
 * In essence, a tool is a React component that is rendered when the tool is active,
 * along with a title, name (URL segment) and icon.
 *
 * Tools can handle {@link structure.Intent | intents} such as "edit" or "create" by defining a
 * function for the `canHandleIntent` property, as well as the `getIntentState` property,
 * which defines what an intent will be mapped to in terms of the tool's URL state.
 *
 * @public
 */
interface Tool<Options = any> {
  /**
   * The React component that renders the tool.
   */
  component: ComponentType<{
    tool: Tool<Options>;
  }>;
  /**
   * React component for the icon representing the tool.
   */
  icon?: ComponentType;
  /**
   * The name of the tool, used as part of the URL.
   */
  name: string;
  /**
   * Options are passed through from the configuration to the component defined by the `component`
   */
  options?: Options;
  /**
   * The router for the tool. See {@link router.Router}
   */
  router?: Router;
  /**
   * Title of the tool - used for the navigation menu item, along with the icon.
   */
  title: string;
  /**
   * Determines whether the tool will control the `document.title`.
   */
  controlsDocumentTitle?: boolean;
  /**
   * Gets the state for the given intent.
   *
   * @param intent - The intent to get the state for.
   * @param params - The parameters for the intent.
   * @param routerState - The current router state. See {@link router.RouterState}
   * @param payload - The payload for the intent.
   * @returns The state for the intent.
   */
  getIntentState?: (intent: string, params: Record<string, string>, routerState: RouterState | undefined, payload: unknown) => unknown;
  /**
   * Determines whether the tool can handle the given intent.
   *
   * Can either return a boolean, or an object where the keys represent the parameters that
   * can/can not be handled. This will be used to determine whether or not a tool is the best
   * suited to handle an intent. Note that an object of only `false` values (or an empty object)
   * is treated as `true`, so you want to explicitly return `false` if you know the intent cannot
   * fulfill the intent request.
   *
   * @param intent - The intent to check.
   * @param params - The parameters for the intent.
   * @param payload - The payload for the intent.
   * @returns Boolean: whether it can handle the intent. Object: Values representing what specific parameters can be handled.
   */
  canHandleIntent?: (intent: string, params: Record<string, unknown>, payload: unknown) => boolean | {
    [key: string]: boolean;
  };
  /**
   * Internal application type identifier used to classify system tools.
   *
   * @internal
   */
  __internalApplicationType?: string;
}
/** @public */
type ComposableOption<TValue, TContext> = (prev: TValue, context: TContext) => TValue;
/**
 * @hidden
 * @beta
 */
type AsyncComposableOption<TValue, TContext> = (prev: TValue, context: TContext) => Promise<TValue>;
/** @public */
interface ConfigContext {
  /**
   * The ID of the project.
   */
  projectId: string;
  /**
   * The name of the dataset.
   */
  dataset: string;
  /**
   * The schema for this source.
   */
  schema: Schema;
  /**
   * The current user or `null` if not authenticated.
   */
  currentUser: CurrentUser | null;
  /**
   * A function that returns a Sanity client with the {@link SourceClientOptions | specified options}.
   */
  getClient: (options: SourceClientOptions) => SanityClient;
  /**
   * Localization resources
   */
  i18n: LocaleSource;
}
/** @public */
type TemplateResolver = ComposableOption<Template[], ConfigContext>;
/**
 * @hidden
 * @beta
 */
interface SchemaPluginOptions {
  name?: string;
  types?: SchemaTypeDefinition[] | ComposableOption<SchemaTypeDefinition[], Omit<ConfigContext, 'schema' | 'currentUser' | 'getClient' | 'client' | 'i18n'>>;
  templates?: Template[] | TemplateResolver;
}
/**
 * @hidden
 * @beta
 */
type NewDocumentOptionsResolver = ComposableOption<TemplateItem[], NewDocumentOptionsContext>;
/**
 * @hidden
 * @beta
 */
interface NewDocumentOptionsContext extends ConfigContext {
  creationContext: NewDocumentCreationContext;
}
/**
 * @hidden
 * @beta
 */
type NewDocumentCreationContext = {
  type: 'global';
  documentId?: undefined;
  schemaType?: undefined;
} | {
  type: 'document';
  documentId: string;
  schemaType: string;
} | {
  type: 'structure';
  documentId?: undefined;
  schemaType: string;
};
/**
 * Defines a singleton: a document with a fixed id that can be created exactly
 * once.
 *
 * @remarks
 * `title` and `icon` are used as the default list item title and icon by the
 * singleton Structure Tool builder functions.
 *
 * `initialValue` provides the value of the singleton's generated initial value
 * template.
 *
 * Each falls back to the schema type's own configuration if omitted.
 *
 * @hidden
 * @beta
 */
interface SingletonDefinition extends Pick<BaseSchemaType, 'title' | 'icon' | 'initialValue'> {
  /**
   * The singleton _definition_ id: the stable identity by which structure
   * code references the singleton. If omitted, it inherits the definition's
   * `documentId`. Establishing a discrete id for the definition decouples
   * the singleton's identity from its schema type and document id:
   *
   * - Multiple singletons can share a schema type if necessary.
   * - Structure code (often shared across workspaces) can reference a
   *   singleton by a value that stays constant while each workspace maps it
   *   to a different document id (e.g. per-dataset or per-environment ids).
   * - Developers can change `documentId` or `schemaType` over time while
   *   preserving the semantic identity of the singleton.
   *
   * Must be unique across singleton definitions.
   */
  id: string;
  /**
   * The singleton _document_ id.
   *
   * Must be unique across singleton definitions.
   */
  documentId: string;
  /**
   * The name of the document schema type used by the singleton.
   */
  schemaType: string;
}
/**
 * A singleton definition as provided by the developer.
 *
 * @hidden
 * @beta
 */
type UnresolvedSingletonDefinition = (Omit<SingletonDefinition, 'id'> & {
  /**
   * The singleton definition id. Optional: inherits the definition's
   * `documentId` if omitted. Set it explicitly to be verbose, to guard
   * against future collisions, or to address a singleton universally when
   * different workspaces or environments map it to different document
   * ids.
   */
  id?: string;
}) | string;
/**
 * Function for composing singletons.
 *
 * This function receives resolved singleton definitions
 * ({@link SingletonDefinition}) and may return unresolved definitions
 * ({@link UnresolvedSingletonDefinition}); Studio resolves the returned
 * definitions before the next resolver sees them.
 *
 * @hidden
 * @beta
 */
type SingletonsResolver = (prev: SingletonDefinition[], context: ConfigContext) => UnresolvedSingletonDefinition[];
/**
 * @hidden
 * @beta
 */
interface DocumentPluginOptions {
  badges?: DocumentBadgeComponent[] | DocumentBadgesResolver;
  actions?: DocumentActionComponent[] | DocumentActionsResolver;
  /**
   * Components for the document.
   * @internal
   */
  components?: DocumentComponents;
  /** @internal */
  unstable_fieldActions?: DocumentFieldAction[] | DocumentFieldActionsResolver;
  /** @hidden @beta */
  inspectors?: DocumentInspector[] | DocumentInspectorsResolver;
  /**
   * @hidden
   * @beta
   */
  productionUrl?: AsyncComposableOption<string | undefined, ResolveProductionUrlContext>;
  /**
   * @hidden
   * @beta
   */
  unstable_languageFilter?: DocumentLanguageFilterResolver;
  /**
   * @hidden
   * @beta
   */
  newDocumentOptions?: NewDocumentOptionsResolver;
  /**
   * The singleton configuration, surfaced at the `document.singletons`
   * configuration path.
   *
   * If a singleton's `id`, `documentId`, and `schemaType` properties are
   * identical, it can simply be provided as a single string. Studio will
   * expand it to a full {@link SingletonDefinition} at runtime.
   *
   * Alternatively, a resolver function may be provided.
   *
   * @hidden
   * @beta
   */
  singletons?: UnresolvedSingletonDefinition[] | SingletonsResolver;
  /** @deprecated Use `comments` instead */
  unstable_comments?: {
    enabled: boolean | ((context: DocumentCommentsEnabledContext) => boolean);
  };
  /** @internal */
  comments?: {
    enabled: boolean | ((context: DocumentCommentsEnabledContext) => boolean);
  };
  /**
   * Configuration for the "Ask to edit" button that appears when a user
   * lacks edit permissions on a document.
   *
   * @hidden
   * @beta
   */
  askToEdit?: {
    /**
     * Whether the "Ask to edit" button is enabled. Defaults to `true`.
     *
     * Can be a boolean or a function that receives a context object and returns a boolean.
     * When set to `false`, the "Ask to edit" button will be hidden but the
     * document will still be read-only for users without edit permissions.
     */
    enabled: boolean | ((context: DocumentAskToEditEnabledContext) => boolean);
  };
  drafts?: {
    /**
     * Whether the workspace provides the draft model for interacting with documents.
     *
     * When switched off, documents may only be edited:
     *
     *  - Inside a release.
     *  - Outside a release if they support live-edit.
     */
    enabled?: boolean;
  };
}
/**
 *
 * @hidden
 * @beta
 */
interface DocumentLanguageFilterContext extends ConfigContext {
  documentId?: string;
  schemaType: string;
  /**
   * The singleton definition id, if the document is configured as a singleton.
   */
  singleton?: string;
}
/**
 *
 * @hidden
 * @beta
 */
type DocumentLanguageFilterComponent = ComponentType<{
  schemaType: ObjectSchemaType;
}>;
/**
 *
 * @hidden
 * @beta
 */
type DocumentLanguageFilterResolver = ComposableOption<DocumentLanguageFilterComponent[], DocumentLanguageFilterContext>;
/**
 * @hidden
 * @beta
 */
type DocumentActionsResolver = ComposableOption<DocumentActionComponent[], DocumentActionsContext>;
/**
 * @hidden
 * @beta
 */
type DocumentBadgesResolver = ComposableOption<DocumentBadgeComponent[], DocumentBadgesContext>;
/**
 * @hidden
 * @public
 */
type ReleaseActionsResolver = ComposableOption<ReleaseActionComponent[], ReleaseActionsContext>;
/** @hidden @beta */
type DocumentInspectorsResolver = ComposableOption<DocumentInspector[], DocumentInspectorContext>;
/**
 * @public
 * Config for the apps that are available in the studio.
 */
type AppsOptions = {
  canvas?: {
    enabled: boolean;
    /**
     * To allow the "Link to canvas" action on localhost, or in studios not listed under Studios in https://www.sanity.io/manage
     * provide a fallback origin as a string.
     *
     * The string must be the exactly equal `name` as shown for the Studio in manage, and the studio must have create-manifest.json available.
     *
     * If the provided fallback Studio does not expose create-manifest.json "Link to canvas" will fail when using the fallback.
     *
     * Example: `wonderful.sanity.studio`
     *
     * Keep in mind that when fallback origin is used, Canvas will use the schema types and dataset in the *deployed* Studio,
     * not from localhost.
     *
     * To see data synced from Canvas in your localhost Studio, you must ensure that the deployed fallback studio uses the same
     * workspace and schemas as your local configuration.
     *
     */
    fallbackStudioOrigin?: string;
  };
};
/** @beta */
interface PluginOptions {
  name: string;
  plugins?: PluginOptions[];
  schema?: SchemaPluginOptions;
  document?: DocumentPluginOptions;
  tools?: Tool[] | ComposableOption<Tool[], ConfigContext>;
  form?: SanityFormConfig;
  studio?: {
    /**
     * Components for the studio.
     * @hidden
     * @beta
     */
    components?: StudioComponentsPluginOptions;
  };
  /** @beta @hidden */
  i18n?: LocalePluginOptions;
  search?: {
    unstable_partialIndexing?: {
      enabled: boolean;
    };
    /**
     * Control the strategy used for searching documents. This should generally only be used if you
     * wish to try experimental search strategies.
     *
     * Can be one of:
     *
     * * - `"groq2024"`: (default) Perform full text searching using the GROQ Query API and its
     *   new `text::matchQuery` function.
     * - `"groqLegacy"` (legacy): Use client-side tokenization and schema introspection to search
     *   using the GROQ Query API.
     */
    strategy?: SearchStrategy;
  };
  /** Configuration for Scheduled drafts */
  scheduledDrafts?: DefaultPluginsWorkspaceOptions['scheduledDrafts'];
  /** Configuration for Content Releases */
  releases?: DefaultPluginsWorkspaceOptions['releases'];
  /** Configuration for studio beta features.
   * @internal
   */
  beta?: BetaFeatures;
  /** Configuration for error handling.
   * @beta
   */
  onUncaughtError?: (error: Error, errorInfo: ErrorInfo) => void;
  /**
   * @hidden
   * @internal
   */
  announcements?: {
    enabled: boolean;
  };
  /**
   * Config for the Sanity Media Library asset source integration.
   * @beta
   */
  mediaLibrary?: DefaultPluginsWorkspaceOptions['mediaLibrary'];
  /**
   * Advanced version control provides features such as inline content diffs in Studio to make
   * resolving conflicts across document versions easier.
   *
   * @beta
   */
  advancedVersionControl?: {
    /**
     * Control whether advanced version control functionality is enabled.
     *
     * Advanced version control provides features such as inline content diffs in Studio to make
     * resolving conflicts across document versions easier.
     *
     * @beta
     */
    enabled?: boolean | ComposableOption<boolean, ConfigContext>;
  };
}
/** @internal */
type ConfigPropertyReducer<TValue, TContext> = (prev: TValue, config: PluginOptions, context: TContext) => TValue;
/** @internal */
type AsyncConfigPropertyReducer<TValue, TContext> = (prev: TValue, config: PluginOptions, context: TContext) => TValue | Promise<TValue>;
/**
 * @hidden
 * @beta
 */
type Plugin<TOptions = void> = (options: TOptions) => PluginOptions;
/**
 * Context passed to workspace `hidden` callbacks.
 *
 * @public
 */
interface WorkspaceHiddenContext {
  /** The authenticated user, or `null` if unavailable. */
  currentUser: CurrentUser | null;
}
/**
 * A boolean or callback that returns `true` to hide the workspace from the UI.
 *
 * @public
 */
type WorkspaceHiddenProperty = boolean | ((context: WorkspaceHiddenContext) => boolean);
/**
 * @hidden
 * @beta
 */
interface WorkspaceOptions extends SourceOptions {
  basePath: string;
  subtitle?: string;
  /**
   * Hides this workspace from the studio UI. Client-side only -
   * enforce access control server-side via Sanity's RBAC system.
   *
   * Callbacks are evaluated after auth state resolves and re-evaluated when it changes.
   * Before auth resolves, callback-hidden workspaces are treated as visible for
   * navigation purposes - users will see a loading screen until auth resolves.
   *
   * When `currentUser` is `null` (user not yet authenticated in this workspace),
   * returning `true` will prevent them from seeing and authenticating against the
   * workspace. Start callbacks with `if (currentUser === null) return false` unless
   * you intentionally want to hide the workspace from unauthenticated users.
   *
   * @example Hide a workspace from non-admin users
   * ```ts
   * hidden: ({currentUser}) => {
   *   if (currentUser === null) return false
   *   return !currentUser.roles.some((role) => role.name === 'administrator')
   * }
   * ```
   *
   * @public
   */
  hidden?: WorkspaceHiddenProperty;
  /**
   * The workspace logo
   *
   * @deprecated Custom logo components are no longer supported.
   * Users are encouraged to provide custom components for individual workspace icons instead.
   */
  logo?: ComponentType;
  icon?: ComponentType;
  /**
   * @hidden
   * @beta
   */
  theme?: StudioTheme;
  /**
   * @hidden
   * @beta
   */
  unstable_sources?: SourceOptions[];
  /**
   * @deprecated Use `tasks` instead
   */
  unstable_tasks?: DefaultPluginsWorkspaceOptions['tasks'];
  /**
   * @internal
   */
  tasks?: DefaultPluginsWorkspaceOptions['tasks'];
  /**
   * @internal
   */
  releases?: DefaultPluginsWorkspaceOptions['releases'];
  /**
   * @internal
   */
  mediaLibrary?: DefaultPluginsWorkspaceOptions['mediaLibrary'];
  apps?: AppsOptions;
  scheduledDrafts?: DefaultPluginsWorkspaceOptions['scheduledDrafts'];
  scheduledPublishing?: DefaultPluginsWorkspaceOptions['scheduledPublishing'];
}
/**
 * @hidden
 * @beta
 */
interface SourceOptions extends PluginOptions {
  title?: string;
  /**
   * Project ID for this source
   */
  projectId: string;
  /**
   * Dataset name for this source
   */
  dataset: string;
  /**
   * API hostname used for requests. Generally used for custom CNAMEs, allowing businesses to use
   * their own domain for API requests. Must include protocol:
   * eg `https://sanityapi.mycompany.com`
   *
   * Note that (currently) the project ID will be prepended to the passed URL, so the above
   * example would end up as: `https://<projectId>.sanityapi.mycompany.com`
   */
  apiHost?: string;
  /**
   * Authentication options for this source.
   */
  auth?: AuthConfig | AuthStore;
  /**
   * @hidden
   * @beta
   */
  unstable_clientFactory?: (options: ClientConfig) => SanityClient;
}
/**
 * @hidden
 * @beta
 */
interface ResolveProductionUrlContext extends ConfigContext {
  document: SanityDocumentLike;
}
/**
 * @hidden
 * @beta
 */
type DocumentActionsVersionType = 'published' | 'draft' | 'revision' | 'version' | 'scheduled-draft';
/**
 * @hidden
 * @beta
 */
interface DocumentActionsContext extends ConfigContext {
  documentId?: string;
  schemaType: string;
  /** releaseId of the open document, it's undefined if it's published or the draft */
  releaseId: string | undefined;
  /** the type of the currently active document. */
  versionType: DocumentActionsVersionType;
  /**
   * The singleton definition id, if the document is configured as a singleton.
   *
   * The context already includes `documentId` and `schemaType` properties, so
   * the full {@link SingletonDefinition} is not provided.
   */
  singleton?: string;
}
/**
 * @hidden
 * @beta
 */
interface DocumentBadgesContext extends ConfigContext {
  documentId?: string;
  schemaType: string;
  /**
   * The singleton definition id, if the document is configured as a singleton.
   */
  singleton?: string;
}
/** @hidden @beta */
interface DocumentInspectorContext extends ConfigContext {
  documentId?: string;
  documentType: string;
  /**
   * The singleton definition id, if the document is configured as a singleton.
   */
  singleton?: string;
}
/** @hidden @beta */
interface DocumentCommentsEnabledContext {
  documentId?: string;
  documentType: string;
  /**
   * The singleton definition id, if the document is configured as a singleton.
   */
  singleton?: string;
}
/** @hidden @beta */
interface DocumentAskToEditEnabledContext {
  documentId?: string;
  documentType: string;
  /**
   * The singleton definition id, if the document is configured as a singleton.
   */
  singleton?: string;
}
/**
 * @hidden
 * @beta
 */
type PartialContext<TContext extends ConfigContext> = Pick<TContext, Exclude<keyof TContext, keyof ConfigContext>>;
/** @internal*/
interface DocumentLayoutProps {
  /**
   * The ID of the document. This is a read-only property and changing it will have no effect.
   */
  documentId: string;
  /**
   * The type of the document. This is a read-only property and changing it will have no effect.
   */
  documentType: string;
  renderDefault: (props: DocumentLayoutProps) => React.JSX.Element;
}
interface DocumentComponents {
  /** @internal */
  unstable_layout?: ComponentType<DocumentLayoutProps>;
}
/** @public */
interface SourceClientOptions {
  /**
   * API version to use. See {@link https://www.sanity.io/docs/api-versioning | api-versioning}
   */
  apiVersion: string;
}
/**
 * Represents a source.
 * @public
 */
interface Source {
  /** The type of the source. */
  type: 'source';
  /** The name of the source. */
  name: string;
  /** The title of the source. */
  title: string;
  /** The ID of the project. */
  projectId: string;
  /** The name of the dataset. */
  dataset: string;
  /** The schema of the source. */
  schema: Schema;
  /** The templates of the source. */
  templates: ResolvedTemplate[];
  /** The tools of the source. */
  tools: Tool[];
  /** The current user of the source. */
  currentUser: CurrentUser | null;
  /** Whether the user is authenticated. */
  authenticated: boolean;
  /** @internal */
  auth: AuthStore;
  /**
   * Returns a client instance.
   * @param clientOptions - Options to pass to the client. See {@link SourceClientOptions}
   */
  getClient: (clientOptions: SourceClientOptions) => SanityClient;
  /**
   * Document-related functionality.
   * @hidden
   * @beta
   */
  document: {
    /**
     * Returns an array of actions for the document.
     * @hidden
     * @beta
     */
    actions: (props: PartialContext<DocumentActionsContext>) => DocumentActionComponent[];
    /**
     * Returns an array of badges for the document.
     * @hidden
     * @beta
     */
    badges: (props: PartialContext<DocumentBadgesContext>) => DocumentBadgeComponent[];
    /**
     * Components for the document.
     * @internal
     */
    components?: DocumentComponents;
    drafts: {
      /**
       * Whether the workspace provides the draft model for interacting with documents.
       *
       * When switched off, documents may only be edited:
       *
       *  - Inside a release.
       *  - Outside a release if they support live-edit.
       */
      enabled: boolean;
    };
    /** @internal */
    unstable_fieldActions: (props: PartialContext<DocumentFieldActionsResolverContext>) => DocumentFieldAction[];
    /**
     * Resolves the production URL for the document.
     * @hidden
     * @beta
     */
    resolveProductionUrl: (context: PartialContext<ResolveProductionUrlContext>) => Promise<string | undefined>;
    /**
     * Resolves the new document options.
     * @hidden
     * @beta
     */
    resolveNewDocumentOptions: (context: NewDocumentCreationContext) => InitialValueTemplateItem[];
    /**
     * The resolved singleton definitions.
     *
     * @hidden
     * @beta
     */
    singletons: SingletonDefinition[];
    /** @alpha */
    unstable_languageFilter: (props: PartialContext<DocumentLanguageFilterContext>) => DocumentLanguageFilterComponent[];
    /**
     * @hidden
     * @beta
     */
    inspectors: (props: PartialContext<DocumentInspectorContext>) => DocumentInspector[];
    /** @deprecated  Use `comments` instead */
    unstable_comments: {
      enabled: (props: DocumentCommentsEnabledContext) => boolean;
    };
    /** @internal */
    comments: {
      enabled: (props: DocumentCommentsEnabledContext) => boolean;
    };
    /** @hidden @beta */
    askToEdit: {
      enabled: (props: DocumentAskToEditEnabledContext) => boolean;
    };
  };
  /**
   * Form-related functionality.
   * @hidden
   * @beta
   */
  form: {
    /**
     * Array-related functionality.
     * @hidden
     * @beta
     */
    arrays: {
      /** Collapsing of long arrays in the form. */
      collapseItems: {
        /** Whether long arrays are collapsed. */
        enabled: boolean;
        /** The number of items rendered before the remaining items are collapsed. */
        limit: number;
        /** The same, for arrays using the grid layout. Follows `limit` when one is configured. */
        gridLimit: number;
      };
    };
    /**
     * File-related functionality.
     * @hidden
     * @beta
     */
    file: {
      /** The asset sources. */
      assetSources: AssetSource[];
      /** Whether direct uploads are enabled. */
      directUploads: boolean;
    };
    /**
     * Image-related functionality.
     * @hidden
     * @beta
     */
    image: {
      /** The asset sources. */
      assetSources: AssetSource[];
      /** Whether direct uploads are enabled. */
      directUploads: boolean;
    };
    /**
     * Components for the form.
     * @hidden
     * @beta
     */
    components?: FormComponents;
    /**
     * these have not been migrated over and are not merged by the form builder
     *
     * @hidden
     * @beta
     */
    unstable?: {
      CustomMarkers?: FormBuilderCustomMarkersComponent;
      Markers?: FormBuilderMarkersComponent;
    };
  };
  /**
   * @hidden
   * @beta
   */
  studio?: {
    /**
     * Components for the studio.
     * @hidden
     * @beta
     */
    components?: StudioComponents;
  };
  /** @alpha */
  search: {
    filters: SearchFilterDefinition[];
    operators: SearchOperatorDefinition[];
    unstable_partialIndexing?: {
      enabled: boolean;
    };
    strategy?: SearchStrategy;
  };
  /** @internal */
  i18n: LocaleSource;
  /** @internal */
  __internal: {
    /** @internal */
    bifur: BifurClient;
    /** @internal */
    staticInitialValueTemplateItems: InitialValueTemplateItem[];
    /** @internal */
    options: SourceOptions;
    /**
     * _VERY_ internal, likely to change at any point.
     * @internal
     */
    i18next: i18n;
    /**
     * The schema descriptor ID.
     *
     * This can be `undefined` in the case where uploading the schema has been disabled.
     *
     * @internal
     */
    schemaDescriptorId: Promise<string | undefined>;
  };
  /** @beta */
  tasks?: WorkspaceOptions['tasks'];
  scheduledDrafts?: {
    enabled: boolean;
  };
  /** @beta */
  releases?: {
    enabled?: boolean;
    /**
     * Limit the number of releases that can be created by this workspace.
     */
    limit?: number;
    /**
     * Returns an array of actions for the release.
     */
    actions?: (props: PartialContext<ReleaseActionsContext>) => ReleaseActionComponent[];
  };
  /** Configuration for studio features.
   * @internal
   */
  beta?: BetaFeatures;
  /** Configuration for error handling.
   * @beta
   */
  onUncaughtError?: (error: Error, errorInfo: ErrorInfo) => void;
  /**
   * @hidden
   * @internal
   */
  announcements?: {
    enabled: boolean;
  };
  /**
   * Config for the Sanity Media Library asset source integration.
   * @beta
   */
  mediaLibrary?: WorkspaceOptions['mediaLibrary'];
  /**
   * Advanced version control provides features such as inline content diffs in Studio to make
   * resolving conflicts across document versions easier.
   *
   * @beta
   */
  advancedVersionControl: {
    /**
     * Control whether advanced version control functionality is enabled.
     *
     * Advanced version control helps editors identify and resolve divergences
     * between document versions.
     *
     * @beta
     */
    enabled: boolean;
  };
}
/** @internal */
interface WorkspaceSummary extends DefaultPluginsWorkspaceOptions {
  type: 'workspace-summary';
  name: string;
  title: string;
  /**
   * User supplied component if provided, otherwise falls back to
   * an automatically generated default icon.
   */
  icon: ReactNode;
  /** Returns true if a custom icon has been provided in studio config */
  customIcon: boolean;
  subtitle?: string;
  basePath: string;
  /** @see WorkspaceHiddenProperty */
  hidden?: WorkspaceHiddenProperty;
  auth: AuthStore;
  projectId: string;
  dataset: string;
  /**
   * API hostname used for requests. Used to determine if the workspace
   * points to staging or production environment.
   * @internal
   */
  apiHost?: string;
  theme: StudioTheme;
  schema: Schema;
  i18n: LocaleSource;
  /**
   * @internal
   * @deprecated not actually deprecated but don't use or you'll be fired
   */
  __internal: {
    sources: Array<{
      name: string;
      projectId: string;
      dataset: string;
      title: string;
      auth: AuthStore;
      schema: Schema;
      i18n: LocaleSource;
      source: Observable<Source>;
    }>;
  };
}
/**
 * Config for the Scheduled Publishing plugin.
 * @public
 */
interface ScheduledPublishingPluginOptions {
  /**
   * Whether scheduled publishing is enabled for this workspace.
   */
  enabled: boolean;
  /**
   * Date format to use for input fields. This must be a valid `date-fns` {@link https://date-fns.org/docs/format | formatted string}.
   * @defaultValue 'dd/MM/yyyy HH:mm' make sure to specify minutes and hours if you are specifying a custom format
   */
  inputDateTimeFormat?: string;
  /**
   * @hidden
   * Whether scheduled publishing is enabled by the workspace.
   * Sanity is enabling it by default in the config, {@link "../scheduledPublishing/constants.ts"}
   */
  __internal__workspaceEnabled?: boolean;
  /**
   * Whether to show the use releases warning banner in the tool.
   * @deprecated The banner this controls is no longer being used
   */
  showReleasesBanner?: boolean;
}
/**
 * Definition for Workspace
 *
 * @public
 */
interface Workspace extends Omit<Source, 'type'> {
  type: 'workspace';
  /**
   * The API hostname *explicitly configured* on the workspace (custom CNAMEs,
   * non-default environments). Undefined when the config sets none — note the
   * effective host may still differ from the production default in that case
   * (e.g. staging inferred via `isStaging`); environment defaults are applied
   * where clients are created, not here. Carried over from the workspace
   * summary at runtime; typed here so consumers don't have to re-derive it
   * from a client.
   * @internal
   */
  apiHost?: string;
  /**
   * URL base path to use, for instance `/myWorkspace`
   * Note that this will be prepended with any _studio_ base path, eg `/studio/myWorkspace`,
   * and is a client-side routing feature. If you're looking to serve your studio from a subpath,
   * you're probably looking for the `basePath` property in `sanity.cli.ts`/`sanity.cli.js`.
   */
  basePath: string;
  /** Subtitle to show under the name of the workspace */
  subtitle?: string;
  /** React component to use as icon for this workspace */
  icon: ReactNode;
  /**
   *
   * @hidden
   * @beta
   */
  unstable_sources: Source[];
  scheduledPublishing: ScheduledPublishingPluginOptions;
  apps?: AppsOptions;
}
/**
 * If a single workspace is used, not specifying a name or basePath is acceptable
 *
 *
 * @hidden
 * @beta
 */
type SingleWorkspace = Omit<WorkspaceOptions, 'name' | 'basePath'> & {
  name?: string;
  basePath?: string;
};
/**
 * @hidden
 * @beta
 */
type Config = SingleWorkspace | WorkspaceOptions[];
/**
 * @hidden
 * @beta
 */
interface MissingConfigFile {
  missingConfigFile: true;
}
/** @internal */
interface PreparedConfig {
  type: 'prepared-config';
  workspaces: WorkspaceSummary[];
}
/** @beta */
type DefaultPluginsWorkspaceOptions = {
  comments: {
    v2: boolean;
  };
  tasks: {
    enabled: boolean;
  };
  scheduledDrafts: {
    enabled: boolean;
  };
  variants: {
    enabled: boolean;
  };
  scheduledPublishing: ScheduledPublishingPluginOptions;
  releases: {
    enabled?: boolean;
    /**
     * Limit the number of releases that can be created by this workspace.
     */
    limit?: number;
    /**
     * Actions for releases.
     */
    actions?: ReleaseActionComponent[] | ReleaseActionsResolver;
  };
  mediaLibrary?: MediaLibraryConfig;
};
/**
 * Config for the Sanity Media Library asset source integration.
 * @beta
 */
interface MediaLibraryConfig {
  /**
   * Whether the Media Library is enabled.
   */
  enabled?: boolean;
  /**
   * The ID of the Media Library that is connected to the Studio.
   * If not provided, the Media Library will be automatically detected.
   */
  libraryId?: string;
  /**
   * Internal configuration for the Media Library.
   * @internal
   * @hidden
   */
  __internal?: {
    /**
     * Override the Media Library frontend host URL.
     * Used for internal testing against local or custom environments.
     * @example 'http://localhost:3001'
     * @internal
     * @hidden
     */
    frontendHost?: string;
  };
}
/**
 * A selectable value for a known variant condition key.
 *
 * @internal
 */
interface VariantConditionValue {
  value: string;
  title?: string;
  description?: string;
}
/**
 * A known variant condition key and the values it may take.
 *
 * @internal
 */
interface VariantConditionMap {
  /** Persisted condition key. */
  name: string;
  /** Picker heading; falls back to {@link VariantConditionMap.name}. */
  title?: string;
  description?: string;
  /** Allowed values. String entries and `{value, title}` objects may be mixed in one list. */
  values: (string | VariantConditionValue)[];
}
/**
 * Context passed to a `beta.variants.types` resolver.
 *
 * @internal
 */
type VariantTypeContext = Pick<ConfigContext, 'projectId' | 'dataset' | 'getClient'>;
/**
 * Context passed to a per-type `conditions` resolver. `type` is the variant type key
 * (`variant`, `language`, …) whose conditions are being loaded.
 *
 * @internal
 */
type VariantConditionsContext = VariantTypeContext & {
  type: string;
};
/**
 * Static or resolved list of known variant conditions for one variant type.
 *
 * @internal
 */
type VariantConditions = VariantConditionMap[] | ((context: VariantConditionsContext) => VariantConditionMap[] | Promise<VariantConditionMap[]>);
/**
 * One orthogonal variant dimension. Condition keys declared here must not appear on another type.
 *
 * @internal
 */
interface VariantTypeConfig {
  /** Navbar label. The built-in `variant` type falls back to "Variant". Other types fall back to the type key. */
  label?: string;
  description?: string;
  /**
   * Known condition keys for this type. Omit for free-text keys and values.
   * A function receives {@link VariantConditionsContext}.
   */
  conditions?: VariantConditions;
}
/**
 * Variant types supplied in config.
 *
 * The object form only types `variant`. Other keys are rejected until `assertOnlyVariantType`
 * is removed.
 *
 * @internal
 */
type VariantTypesConfig = {
  variant?: VariantTypeConfig;
} | ((context: VariantTypeContext) => Record<string, VariantTypeConfig> | Promise<Record<string, VariantTypeConfig>>);
/**
 * @internal
 * Configuration for studio beta features.
 * */
interface BetaFeatures {
  form?: {
    /** @deprecated `enhancedObjectDialog` has been removed. The enhanced object dialog is now always enabled and is considered the default studio experience. */
    enhancedObjectDialog?: never;
  };
  /**
   * @deprecated - The Start in Create flow has been removed and will be updated in an upcoming studio release.
   */
  create?: {
    /**
     * When true, a "Start in Sanity Create" action will be shown for all new documents, in place of regular document actions,
     * when the following are true:
     * - the origin of the current url is listed under Studios in sanity.to/manage (OR fallbackStudioOrigin is provided)
     * - [origin]/static/create-manifest.json is available over HTTP GET
     *
     * The manifest file is automatically created and deployed when deploying studios with `sanity deploy`
     *
     * @see #fallbackStudioOrigin
     */
    startInCreateEnabled?: boolean;
    /**
     * To show the "Start in Create" button on localhost, or in studios not listed under Studios in https://www.sanity.io/manage
     * provide a fallback origin as a string.
     *
     * The string must be the exactly equal `name` as shown for the Studio in manage, and the studio must have create-manifest.json available.
     *
     * If the provided fallback Studio does not expose create-manifest.json "Start in Sanity Create" will fail when using the fallback.
     *
     * Example: `wonderful.sanity.studio`
     *
     * Keep in mind that when fallback origin is used, Sanity Create will used the schema types and dataset in the *deployed* Studio,
     * not from localhost.
     *
     * To see data synced from Sanity Create in your localhost Studio, you must ensure that the deployed fallback studio uses the same
     * workspace and schemas as your local configuration.
     *
     * @see #startInCreateEnabled
     */
    fallbackStudioOrigin?: string;
  };
  /**
   * Config for the history events API .
   *
   * If enabled, it will use the new events API to fetch document history.
   *
   * If it is not enabled, it will continue using the legacy Timeline.
   */
  eventsAPI?: {
    /**
     * @deprecated This option will be removed in the next major version, after which document
     * history will always use the events API and the legacy Timeline will no longer be available.
     */
    documents?: boolean;
    releases?: boolean;
  };
  /**
   * Config for variants beta features in Studio.
   */
  variants?: {
    enabled?: boolean;
    /**
     * Variant types and the condition keys each type owns.
     *
     * Omit to use a single freeform `variant` type. Only the `variant` key is accepted.
     *
     * A function may return a promise and is called when a variant surface first needs the
     * types, not at studio boot. It receives {@link VariantTypeContext}.
     *
     * @example
     * ```ts
     * types: {
     *   variant: {
     *     label: 'Variant',
     *     conditions: async ({getClient, type}) => {
     *       const client = getClient({apiVersion: '2024-01-01'})
     *       return await client.fetch(CONDITIONS_QUERY, {type})
     *     },
     *   },
     * }
     * ```
     */
    types?: VariantTypesConfig;
  };
  /**
   * Config for the opt-in Comments API implementation.
   *
   * @internal
   */
  comments?: {
    v2?: boolean;
  };
  /**
   * Control whether the preview of the new document group inventory is
   * switched on.
   *
   * This is the new UI for managing and navigating versions and variants of
   * documents. It replaces the version chips that currently appear at the top
   * of the document editor.
   *
   * It is switched on automatically when `beta.variants.enabled` is true.
   */
  documentGroupInventory?: {
    enabled?: boolean;
  };
  /**
   * Keep recently used tools mounted with React's `<Activity>` while another tool is active.
   *
   * By default the Studio unmounts a tool as soon as you switch to another one, and mounts it
   * again from scratch when you come back. With this switched on, the three most recently used
   * tools stay mounted: inactive ones are hidden with an `<Activity mode="hidden">` boundary
   * instead of being unmounted, so their state survives the round trip, and switching back to one
   * of them restores the URL it was last at instead of resetting it to the tool's start page.
   * Going from Presentation to Structure and back, for example, keeps the preview iframe loaded
   * and the document you were editing open.
   *
   * Opening a fourth tool unmounts the one you have not used for the longest time. Hidden tools
   * have their effects paused, as with any hidden `<Activity>` boundary.
   *
   * This feature is not ready for production yet. Only enable it to test in development and
   * staging environments.
   *
   * Hidden `<Activity>` boundaries tear down effects and re-create them on reveal, which custom
   * studio code and plugins may not expect. If enabling this mode causes problems in your tools,
   * components or plugins, see the React documentation's troubleshooting guide for `<Activity>`:
   * https://react.dev/reference/react/Activity#troubleshooting
   */
  reactActivityMode?: {
    enabled?: boolean;
  };
}
/**
 * @hidden
 * @beta */
interface DocumentActionProps extends EditStateFor {
  revision?: string;
  /**
   * @deprecated - do not use, will be removed in a future major version, use local state instead, for example call `setDialogOpen(false)` in dialog's `onCancel` callback.
   */
  onComplete: () => void;
  /**
   * Whether the initial value has been resolved.
   */
  initialValueResolved: boolean;
}
declare const SANITY_DEFINED_ACTIONS: {
  delete: string;
  discardChanges: string;
  discardVersion: string;
  duplicate: string;
  restore: string;
  publish: string;
  unpublish: string;
  unpublishVersion: string;
  linkToCanvas: string;
  editInCanvas: string;
  unlinkFromCanvas: string;
  schedule: string;
};
/**
 * Union of action identifiers built into Sanity. Use for exhaustive matching
 * over built-in actions.
 *
 * @public
 */
type SanityDefinedAction = keyof typeof SANITY_DEFINED_ACTIONS;
/**
 * Registry of document action keys. Extend via declaration merging to
 * register a custom action key. Use `never` as the value type; the values
 * are unused, and indexed access (`DocumentActionKeys[K]`) is not part of
 * the public contract.
 *
 * ```ts
 * declare module 'sanity' {
 *   interface DocumentActionKeys {
 *     myPlugin: never
 *   }
 * }
 * ```
 *
 * Once registered, `MyAction.action = 'myPlugin'` type-checks, and other
 * plugins can target the action for replacement.
 *
 * To match only Sanity-defined actions exhaustively, narrow with
 * `isSanityDefinedAction`.
 *
 * @public
 */
interface DocumentActionKeys extends Record<SanityDefinedAction, never> {}
/**
 * Narrow an action's identifier to {@link SanityDefinedAction}. Use to
 * exhaustively match built-in actions in projects where plugins have
 * registered additional keys.
 *
 * @param action - The action to check.
 * @returns `true` if the action identifier is Sanity-defined.
 *
 * @public
 */
declare const isSanityDefinedAction: (action: DocumentActionDescription & {
  action?: keyof DocumentActionKeys;
}) => action is DocumentActionDescription & {
  action: SanityDefinedAction;
};
/**
 * @hidden
 * @beta */
interface DocumentActionComponent extends ActionComponent<DocumentActionProps, DocumentActionDescription> {
  /**
   * Stable identifier for this action. Set to a {@link SanityDefinedAction}
   * to replace a built-in, or to a key registered on
   * {@link DocumentActionKeys} via declaration merging so other plugins can
   * target the action for replacement.
   *
   * ```ts
   * import {defineConfig} from 'sanity'
   * import {MyPublishAction} from '...'
   *
   * export default defineConfig({
   *   document: {
   *     actions: (prev) =>
   *       prev.map((previousAction) =>
   *         previousAction.action === 'publish' ? MyPublishAction : previousAction,
   *       ),
   *   },
   * })
   * ```
   */
  action?: keyof DocumentActionKeys;
  /**
   * For debugging purposes
   */
  displayName?: string;
}
/**
 * @hidden
 * @beta
 */
interface DuplicateActionProps extends DocumentActionProps {
  mapDocument?: MapDocument;
}
/**
 * @hidden
 * @beta
 */
interface DuplicateDocumentActionComponent extends ActionComponent<DuplicateActionProps, DocumentActionDescription>, Pick<DocumentActionComponent, 'action' | 'displayName'> {}
/**
 * @hidden
 * @beta */
interface DocumentActionConfirmDialogProps {
  type: 'confirm';
  tone?: ButtonTone;
  message: ReactNode;
  onConfirm: () => void;
  onCancel: () => void;
  cancelButtonIcon?: ComponentType | ReactNode;
  cancelButtonText?: string;
  confirmButtonIcon?: ComponentType | ReactNode;
  confirmButtonText?: string;
}
/**
 * @hidden
 * @beta */
interface DocumentActionModalDialogProps {
  type?: 'dialog';
  content: ReactNode;
  /**
   *
   * @hidden
   * @beta
   */
  footer?: DialogProps['footer'];
  /**
   *
   * @hidden
   * @beta
   */
  header?: ReactNode;
  onClose: () => void;
  showCloseButton?: boolean;
  /**
   *
   * @hidden
   * @beta
   */
  width?: 'small' | 'medium' | 'large' | 'full';
}
/**
 * @hidden
 * @beta */
interface DocumentActionPopoverDialogProps {
  type: 'popover';
  content: ReactNode;
  onClose: () => void;
}
/**
 * @hidden
 * @beta */
interface DocumentActionCustomDialogComponentProps {
  type: 'custom';
  component: ReactNode;
}
/**
 * @hidden
 * @beta */
type DocumentActionDialogProps = DocumentActionConfirmDialogProps | DocumentActionPopoverDialogProps | DocumentActionModalDialogProps | DocumentActionCustomDialogComponentProps;
/**
 * @hidden
 * @beta */
type DocumentActionGroup = 'default' | 'paneActions';
/**
 * @hidden
 * @beta
 */
interface DocumentActionDescription extends GroupableActionDescription<DocumentActionGroup> {
  dialog?: DocumentActionDialogProps | false | null;
}
/** @internal */
type Reported<Value> = [string, Value];
/** @internal */
type ReporterHook<Payload> = (id: string | null, value: () => Payload, isEqual?: IsEqualFunction<Payload>) => void;
/** @internal */
type IsEqualFunction<Value> = (a: Value | null, b: Value | null) => boolean;
/** @internal */
interface TrackerContextStore<Value> {
  add: (id: string, value: Value) => void;
  update: (id: string, value: Value) => void;
  remove: (id: string) => void;
}
/** @internal */
type TrackerContextGetSnapshot<Value> = [string, Value][];
/** @internal */
declare function useTrackerStore<Value>(): {
  store: TrackerContextStore<Value>;
  snapshot: TrackerContextGetSnapshot<Value>;
};
/** @internal */
declare function useTrackerStoreReporter<Value>(store: TrackerContextStore<Value> | null, id: string | null, value: () => Value, isEqual?: IsEqualFunction<Value>): void;
/** @internal */
interface TrackedChange {
  element: HTMLElement | null;
  path: Path;
  isChanged: boolean;
  hasFocus: boolean;
  hasHover: boolean;
  hasRevertHover: boolean;
  zIndex: number;
}
/** @internal */
interface TrackedArea {
  element: HTMLElement | null;
}
/** @internal */
type ChangeIndicatorTrackerContextValue = TrackedChange;
/**
 * @hidden
 * @beta */
interface StateTree<T> {
  value?: T | undefined;
  children?: {
    [key: string]: StateTree<T>;
  };
}
/** @internal */
type FormState<T extends { [key in string]: unknown; } = { [key in string]: unknown; }, S extends ObjectSchemaType = ObjectSchemaType> = ObjectFormNode<T, S>;
/** @internal */
interface UseFormStateOptions extends Pick<NodeChronologyProps, 'hasUpstreamVersion'> {
  schemaType: ObjectSchemaType;
  documentValue: unknown;
  comparisonValue: unknown;
  baseVariantValue?: unknown;
  hasBaseVariant?: boolean;
  openPath: Path;
  focusPath: Path;
  perspective: TargetPerspective;
  presence: FormNodePresence[];
  validation: ValidationMarker[];
  fieldGroupState?: StateTree<string> | undefined;
  collapsedFieldSets?: StateTree<boolean> | undefined;
  collapsedPaths?: StateTree<boolean> | undefined;
  readOnly?: boolean;
  changesOpen?: boolean;
  displayInlineChanges?: boolean;
}
/** @internal */
declare function useFormState<T extends { [key in string]: unknown; } = { [key in string]: unknown; }, S extends ObjectSchemaType = ObjectSchemaType>({ comparisonValue, documentValue, fieldGroupState, collapsedFieldSets, collapsedPaths, focusPath, openPath, presence, validation, readOnly: inputReadOnly, changesOpen, schemaType, perspective, hasUpstreamVersion, displayInlineChanges, baseVariantValue, hasBaseVariant }: UseFormStateOptions): FormState<T, S> | null;
/**
 * This represents the shape of the root value sanity forms expect
 * @hidden
 * @public
 */
interface FormDocumentValue {
  _type: string;
  _id: string;
  [key: string]: unknown;
}
/**
 * @internal
 */
interface VirtualizerScrollInstance {
  /**
   * The parent that has the overflow scroll
   */
  scrollElement: HTMLElement | null;
  /**
   * The container that wraps the array items
   */
  containerElement: RefObject<HTMLElement | null>;
}
/**
 * @internal
 */
declare function useVirtualizerScrollInstance(): VirtualizerScrollInstance;
/**
 *
 * @hidden
 * @beta
 */
interface MutationPatchMsg {
  type: 'mutation';
  patches: FormPatch[];
  snapshot: unknown;
}
/**
 *
 * @hidden
 * @beta
 */
interface RebasePatchMsg {
  type: 'rebase';
  patches: FormPatch[];
  snapshot: unknown;
}
/**
 *
 * @hidden
 * @beta
 */
type PatchMsg = MutationPatchMsg | RebasePatchMsg;
/**
 *
 * @hidden
 * @beta
 */
interface PatchMsgSubscriber {
  (msg: PatchMsg): void;
}
/**
 *
 * @hidden
 * @beta
 */
interface PatchChannel {
  publish: (msg: PatchMsg) => void;
  subscribe: (subscriber: PatchMsgSubscriber) => () => void;
}
/**
 * @internal
 */
declare function createPatchChannel(): PatchChannel;
/** @internal */
interface ResourceCache {
  get<T = unknown>(options: {
    namespace: string;
    dependencies: (object | null)[];
  }): T | undefined;
  set(options: {
    namespace: string;
    dependencies: (object | null)[];
    value: unknown;
  }): void;
}
/** @internal */
interface ResourceCacheProviderProps {
  children: ReactNode;
}
/** @internal */
declare function ResourceCacheProvider({ children }: ResourceCacheProviderProps): import("react").JSX.Element;
/** @internal */
declare function useResourceCache(): ResourceCache;
/**
 * @beta
 * @hidden
 */
interface SanityClipboardItem {
  type: 'sanityClipboardItem';
  documentId?: string;
  documentType?: string;
  isDocument: boolean;
  schemaTypeName: string;
  valuePath: Path;
  value: unknown;
  patchType?: 'replace' | 'append';
}
/**
 * @beta
 * @hidden
 */
interface DocumentMeta {
  documentId: string;
  documentType: string;
  schemaType: ObjectSchemaType;
  onChange: (event: PatchEvent) => void;
}
/**
 * @beta
 * @hidden
 */
interface CopyPasteContextType {
  setDocumentMeta: (documentMeta: DocumentMeta) => void;
  onCopy: (path: Path, value: FormDocumentValue | undefined, options: CopyOptions) => Promise<void>;
  onPaste: (targetPath: Path, value: FormDocumentValue | undefined, options: PasteOptions) => Promise<void>;
}
/**
 * @beta
 * @hidden
 */
interface BaseOptions {
  context: {
    source: 'fieldAction' | 'documentFieldAction' | 'keyboardShortcut' | 'arrayItem' | 'unknown';
  };
}
/**
 * @beta
 * @hidden
 */
interface CopyOptions extends BaseOptions {
  patchType?: 'replace' | 'append';
}
/**
 * @beta
 * @hidden
 */
interface PasteOptions extends BaseOptions {}
export { BaseActionDescription as $, isVariantId as $a, EditDocumentVersionEvent as $c, NodeDiffProps as $i, DocumentBadgeDescription as $n, PatchEvent as $o, RenderBlockActionsProps as $r, createObservableBufferedDocument as $s, WorkspaceHiddenContext as $t, useTrackerStoreReporter as A, PrimitiveItemProps as Aa, StudioLocaleResourceKeys as Ac, RenderArrayOfObjectsItemCallback as Ai, DocumentPairTarget as Al, DocumentStackAvailability as An, Position as Ao, SearchOperatorInput as Ar, createHistoryStore as As, PreparedConfig as At, DocumentActionKeys as B, Uploader as Ba, LocaleSource as Bc, BlockListItemProps as Bi, RemoteSnapshotEvent as Bl, PreviewPath as Bn, Status as Bo, HandleCallbackResult as Br, Transaction as Bs, SourceClientOptions as Bt, StateTree as C, MixedArrayError as Ca, StringDiff$1 as Cc, OnPathFocusPayload as Ci, DocumentRebaseTelemetryEvent as Cl, DocumentPreviewStoreOptions as Cn, newDraftFrom as Co, I18nSearchOperatorDescriptionKey as Cr, OperationImpl as Cs, MissingConfigFile as Ct, TrackerContextGetSnapshot as D, ItemProps as Da, TypeChangeDiff$1 as Dc, PrimitiveInputProps as Di, ListenerEvent as Dl, AvailabilityReason as Dn, FieldPresenceData as Do, SearchOperatorBase as Dr, DocumentRevision as Ds, PartialContext as Dt, TrackedChange as E, BaseItemProps as Ea, StringSegmentUnchanged$1 as Ec, PrimitiveInputElementProps as Ei, LatencyReportEvent as El, ApiConfig as En, FormFieldGroup as Eo, OperatorInputComponentProps as Er, snapshotPair as Es, NewDocumentOptionsResolver as Et, DocumentActionConfirmDialogProps as F, AssetSourcesResolver as Fa, LocaleNestedResource as Fc, RenderItemCallback as Fi, CommittedEvent as Fl, InvalidationChannelEvent as Fn, Size as Fo, defineSearchOperator as Fr, ParsedTimeRef as Fs, SchemaPluginOptions as Ft, DuplicateDocumentActionComponent as G, PerspectiveContextValue as Ga, TFunction$1 as Gc, ArrayOfObjectsFormNode as Gi, FormComponents as Gn, DocumentFieldActionHook as Go, LoginMethod as Gr, Pair as Gs, VariantConditionMap as Gt, DocumentActionPopoverDialogProps as H, UploaderResolver as Ha, LocalesBundlesOption as Hc, BlockStyleProps as Hi, StoreRequestErrorHandler as Hl, PreviewableType as Hn, DocumentFieldAction as Ho, AuthConfig as Hr, DocumentVersion as Hs, TemplateResolver as Ht, DocumentActionCustomDialogComponentProps as I, FileLike as Ia, LocalePluginOptions as Ic, RenderPreviewCallback as Ii, DocumentMutationEvent as Il, ObserveDocumentAvailabilityFn as In, DocumentPresence as Io, SearchFieldDefinitionDictionary as Ir, Timeline as Is, SingleWorkspace as It, ActionComponent as J, ReleasesNavMenuItemPropsGetter as Ja, CreateLiveDocumentEvent as Jc, BooleanFormNode as Ji, DocumentInspectorMenuItem as Jn, DocumentFieldActionProps as Jo, FormBuilderFilterFieldFn as Jr, checkoutPair as Js, VariantConditionsContext as Jt, SanityDefinedAction as K, PerspectiveStack as Ka, BaseEvent as Kc, ArrayOfPrimitivesFormNode as Ki, DocumentInspector as Kn, DocumentFieldActionItem as Ko, ArrayInputFunctionsProps as Kr, RemoteSnapshotVersionEvent as Ks, VariantConditionValue as Kt, DocumentActionDescription as L, ResolvedUploader as La, LocaleResourceBundle as Lc, RenderPreviewCallbackProps as Li, DocumentRebaseEvent as Ll, ObserveDocumentTypeFromIdFn as Ln, GlobalPresence as Lo, AuthProbeResult as Lr, TimelineOptions as Ls, SingletonDefinition as Lt, Reported as M, ArrayInputInsertEvent as Ma, Locale as Mc, RenderBlockCallback as Mi, MutationEvent as Ml, DraftsModelDocumentAvailability as Mn, Rect as Mo, SearchValueFormatterContext as Mr, SelectionState as Ms, ResolveProductionUrlContext as Mt, ReporterHook as N, ArrayInputMoveItemEvent as Na, LocaleConfigContext as Nc, RenderFieldCallback as Ni, PendingMutationsEvent as Nl, FieldName as Nn, RegionWithIntersectionDetails as No, ValuelessSearchOperatorBuilder as Nr, TimelineController as Ns, SanityFormConfig as Nt, TrackerContextStore as O, ObjectItem as Oa, FieldValueError as Oc, StringInputProps as Oi, MutationPerformanceEvent as Ol, AvailabilityResponse as On, FormNodePresence as Oo, SearchOperatorBuilder as Or, HistoryStore as Os, Plugin as Ot, DocumentActionComponent as P, UploadEvent as Pa, LocaleDefinition as Pc, RenderInputCallback as Pi, CommitFunction as Pl, Id as Pn, ReportedRegionWithRect as Po, ValuelessSearchOperatorParams as Pr, TimelineControllerOptions as Ps, ScheduledPublishingPluginOptions as Pt, AsyncConfigPropertyReducer as Q, VariantId as Qa, DocumentVersionEventType as Qc, NodeChronologyProps as Qi, DocumentBadgeComponent as Qn, DocumentFieldActionsResolverContext as Qo, RenderBlockActionsCallback as Qr, CommitRequest as Qs, Workspace as Qt, DocumentActionDialogProps as R, UploadOptions as Ra, LocaleResourceKey as Rc, BlockAnnotationProps as Ri, DocumentRemoteMutationEvent as Rl, ObservePathsFn as Rn, PresenceLocation as Ro, AuthState as Rr, CombinedDocument as Rs, SingletonsResolver as Rt, useFormState as S, MissingKeysError as Sa, ReferenceDiff as Sc, OnPasteFn as Si, DocumentPairLoadedEvent as Sl, DocumentPreviewStore as Sn, isVersionId as So, operatorDefinitions as Sr, OperationArgs as Ss, MediaLibraryConfig as St, TrackedArea as T, UndeclaredMembersError as Ta, StringSegmentChanged$1 as Tc, PortableTextInputProps as Ti, InitialSnapshotEvent as Tl, createDocumentPreviewStore as Tn, systemBundles as To, OperatorButtonValueComponentProps as Tr, DocumentVersionSnapshots as Ts, NewDocumentOptionsContext as Tt, DocumentActionProps as U, ProvenanceDiffAnnotation as Ua, LocalesOption as Uc, MarkdownConfig as Ui, Selection as Un, DocumentFieldActionDivider as Uo, AuthProvider as Ur, DocumentVersionEvent as Us, Tool as Ut, DocumentActionModalDialogProps as V, UploaderDef as Va, LocaleWeekInfo as Vc, BlockProps as Vi, SnapshotEvent as Vl, Previewable as Vn, UserSessionPair as Vo, LoginComponentProps as Vr, CommitError as Vs, SourceOptions as Vt, DuplicateActionProps as W, PerspectiveBundle as Wa, StaticLocaleResourceBundle as Wc, PortableTextPluginsProps as Wi, ObserveDocumentAPIConfig as Wn, DocumentFieldActionGroup as Wo, CookielessCompatibleLoginMethod as Wr, MutationResult as Ws, UnresolvedSingletonDefinition as Wt, AssetSourceResolver as X, TargetPerspective as Xa, DeleteDocumentVersionEvent as Xc, DocumentFormNode as Xi, DocumentInspectorUseMenuItemProps as Xn, DocumentFieldActionTone as Xo, FormBuilderMarkersComponent as Xr, BufferedDocumentWrapper as Xs, VariantTypeContext as Xt, AppsOptions as Y, SelectedPerspective as Ya, DeleteDocumentGroupEvent as Yc, ComputeDiff as Yi, DocumentInspectorProps as Yn, DocumentFieldActionStatus as Yo, FormBuilderInputComponentMap as Yr, BufferedDocumentEvent as Ys, VariantTypeConfig as Yt, AsyncComposableOption as Z, SystemVariant as Za, DocumentGroupEvent as Zc, HiddenField as Zi, defineDocumentInspector as Zn, DocumentFieldActionsResolver as Zo, PortableTextMarker as Zr, createBufferedDocument as Zs, VariantTypesConfig as Zt, VirtualizerScrollInstance as _, ArrayItemError as _a, GroupChangeNode as _c, EditorChange as _i, isUpdateLiveDocumentEvent as _l, validateDocument as _n, isDraft as _o, SearchFilterDefinition as _r, PreviewLayoutKey as _s, DocumentLanguageFilterResolver as _t, PasteOptions as a, StringFormNode as aa, ChangeNode as ac, FieldCommentsProps as ai, UnpublishDocumentEvent as al, LogoProps as an, SystemBundle as ao, StudioTheme as ar, FormPatch as as, DefaultPluginsWorkspaceOptions as at, FormState as b, IncompatibleTypeError as ba, NumberDiff$1 as bc, NumberInputProps as bi, EditStateFor as bl, SourceProviderProps as bn, isSystemBundle as bo, defineSearchFilterOperators as br, MapDocument as bs, FormBuilderComponentResolverContext as bt, ResourceCacheProvider as c, ArrayOfPrimitivesItemMember as ca, ChunkType as cc, ObjectFieldProps as ci, isCreateDocumentVersionEvent as cl, ProviderProps as cn, createDraftFrom as co, ResolvedTemplate as cr, FormPatchOrigin as cs, DocumentActionsVersionType as ct, MutationPatchMsg as d, FieldMember as da, DiffComponentOptions as dc, ArrayOfObjectsInputProps as di, isDeleteDocumentVersionEvent as dl, ToolMenuProps as dn, getDraftId as do, TemplateFieldDefinition as dr, FormUnsetPatch as ds, DocumentBadgesResolver as dt, NumberFormNode as ea, Annotation as ec, RenderCustomMarkers as ei, EventsStore as el, WorkspaceHiddenProperty as en, VARIANTS_STUDIO_CLIENT_OPTIONS as eo, DocumentBadgeProps as er, FormDecPatch as es, BetaFeatures as et, PatchChannel as f, FieldSetMember as fa, DiffComponentResolver as fc, ArrayOfPrimitivesElementType as fi, isEditDocumentVersionEvent as fl, ReleaseActionComponent as fn, getIdPair as fo, TemplateItem as fr, PatchArg as fs, DocumentCommentsEnabledContext as ft, createPatchChannel as g, FieldsetState as ga, FromToIndex as gc, ComplexElementProps as gi, isUnscheduleDocumentVersionEvent as gl, ValidateDocumentOptions as gn, idMatchesPerspective as go, SearchOperatorDefinitionDictionary as gr, PreviewComponent as gs, DocumentLanguageFilterContext as gt, RebasePatchMsg as h, FieldsetMembers as ha, FieldOperationsAPI as hc, BooleanInputProps as hi, isUnpublishDocumentEvent as hl, ReleaseActionsContext as hn, getVersionId as ho, TypeTarget as hr, PortableTextPreviewLayoutKey as hs, DocumentLanguageFilterComponent as ht, DocumentMeta as i, PrimitiveFormNode as ia, BooleanDiff$1 as ic, BooleanFieldProps as ii, ScheduleDocumentVersionEvent as il, LayoutProps as in, PublishedId as io, StudioColorScheme as ir, FormInsertPatchPosition as is, ConfigPropertyReducer as it, IsEqualFunction as j, ArrayInputCopyEvent as ja, ImplicitLocaleResourceBundle as jc, RenderArrayOfPrimitivesItemCallback as ji, IdPair as jl, DraftsModelDocument as jn, PresentUser as jo, SearchOperatorParams as jr, removeMissingReferences as js, ReleaseActionsResolver as jt, useTrackerStore as k, ObjectItemProps as ka, getValueError as kc, RenderAnnotationCallback as ki, getPairListener as kl, DocumentAvailability as kn, Location as ko, SearchOperatorButtonValue as kr, HistoryStoreOptions as ks, PluginOptions as kt, ResourceCacheProviderProps as l, ArrayOfPrimitivesMember as la, Diff$1 as lc, PrimitiveFieldProps as li, isCreateLiveDocumentEvent as ll, StudioComponents as ln, createPublishedFrom as lo, Template as lr, FormSetIfMissingPatch as ls, DocumentAskToEditEnabledContext as lt, PatchMsgSubscriber as m, ObjectMember as ma, FieldChangeNode as mc, BaseInputProps as mi, isScheduleDocumentVersionEvent as ml, ReleaseActionProps as mn, getVersionFromId$1 as mo, TemplateReferenceTarget as mr, GeneralPreviewLayoutKey as ms, DocumentInspectorsResolver as mt, CopyOptions as n, ObjectFormNode as na, ArrayDiff$1 as nc, ArrayOfPrimitivesFieldProps as ni, HistoryClearedEvent as nl, WorkspaceSummary as nn, DRAFTS_FOLDER as no, HookCollectionActionHook as nr, FormIncPatch as ns, Config as nt, SanityClipboardItem as o, ArrayOfObjectsItemMember as oa, ChangeTitlePath as oc, FieldProps as oi, UnscheduleDocumentVersionEvent as ol, NavbarAction as on, VERSION_FOLDER as oo, StudioThemeColorSchemeKey as or, FormPatchBase as os, DocumentActionsContext as ot, PatchMsg as p, FieldsetRenderMembersCallback as pa, DiffProps as pc, ArrayOfPrimitivesInputProps as pi, isPublishDocumentVersionEvent as pl, ReleaseActionDescription as pn, getPublishedId$1 as po, TemplateParameter as pr, GeneralDocumentListLayoutKey as ps, DocumentInspectorContext as pt, isSanityDefinedAction as q, ReleaseId as qa, CreateDocumentVersionEvent as qc, BaseFormNode as qi, DocumentInspectorComponent as qn, DocumentFieldActionNode as qo, FormBuilderCustomMarkersComponent as qr, WithVersion as qs, VariantConditions as qt, CopyPasteContextType as r, ObjectRenderMembersCallback as ra, ArrayItemMetadata as rc, BaseFieldProps as ri, PublishDocumentVersionEvent as rl, ActiveToolLayoutProps as rn, DraftId as ro, defaultTheme as rr, FormInsertPatch as rs, ConfigContext as rt, ResourceCache as s, ArrayOfObjectsMember as sa, Chunk as sc, NumberFieldProps as si, UpdateLiveDocumentEvent as sl, NavbarProps as sn, collate as so, InitialValueTemplateItem as sr, FormPatchJSONValue as ss, DocumentActionsResolver as st, BaseOptions as t, ObjectArrayFormNode as ta, AnnotationDetails as tc, ArrayFieldProps as ti, EventsStoreRevision as tl, WorkspaceOptions as tn, CollatedHit as to, GetHookCollectionStateProps as tr, FormDiffMatchPatch as ts, ComposableOption as tt, useResourceCache as u, DecorationMember as ua, DiffComponent as uc, StringFieldProps as ui, isDeleteDocumentGroupEvent as ul, StudioComponentsPluginOptions as un, documentIdEquals as uo, TemplateArrayFieldDefinition as ur, FormSetPatch as us, DocumentBadgesContext as ut, useVirtualizerScrollInstance as v, DuplicateKeysError as va, ItemDiff$1 as vc, InputOnSelectFileFunctionProps as vi, DocumentVariantType as vl, ValidationStatus as vn, isDraftId as vo, SearchFilterDefinitionDictionary as vr, PreviewMediaDimensions as vs, DocumentLayoutProps as vt, ChangeIndicatorTrackerContextValue as w, TypeAnnotationMismatchError as wa, StringDiffSegment as wc, PasteData$1 as wi, DocumentStoreExtraOptions as wl, ObserveForPreviewFn as wn, removeDupes as wo, I18nSearchOperatorNameKey as wr, OperationsAPI as ws, NewDocumentCreationContext as wt, UseFormStateOptions as x, InvalidItemTypeError as xa, ObjectDiff$1 as xc, ObjectInputProps as xi, editState as xl, useSource as xn, isSystemBundleName as xo, SearchOperatorType as xr, Operation as xs, GroupableActionDescription as xt, FormDocumentValue as y, FieldError as ya, NullDiff$1 as yc, InputProps as yi, getDocumentVariantType as yl, SourceProvider as yn, isPublishedId$1 as yo, defineSearchFilter as yr, PreviewProps as ys, DocumentPluginOptions as yt, DocumentActionGroup as z, UploadProgressEvent as za, LocaleResourceRecord as zc, BlockDecoratorProps as zi, MutationPayload as zl, PreparedSnapshot as zn, Session as zo, AuthStore as zr, DocumentRemoteMutationVersionEvent as zs, Source as zt };
//# sourceMappingURL=types-1fG14RfY.d.ts.map