import { D as TrackerContextGetSnapshot, Do as FieldPresenceData, Ga as PerspectiveContextValue, Ho as DocumentFieldAction$1, L as DocumentActionDescription, Mc as Locale, O as TrackerContextStore, Oo as FormNodePresence, Qt as Workspace, U as DocumentActionProps, Zr as PortableTextMarker, _ as VirtualizerScrollInstance, ai as FieldCommentsProps, el as EventsStore, ir as StudioColorScheme, or as StudioThemeColorSchemeKey, qo as DocumentFieldActionNode$1, r as CopyPasteContextType, s as ResourceCache, w as ChangeIndicatorTrackerContextValue, zt as Source$1 } from "./types-1fG14RfY.js";
import { $ as ReferenceInputOptions, B as CommentDocument, Ct as DocumentChangeContextInstance, Dt as UserColorManager, E as WorkspacesContextValue, H as CommentOperations, Ht as ZIndexContextValue, It as DivergenceNavigator, J as CommentsContextValue$1, L as SchedulesContextValue, O as ActiveWorkspaceMatcherContextValue, Rn as ConnectorContextValue, T as AddonDatasetContextValue, U as CommentStatus, V as CommentMessage$1, Vt as StudioErrorHandler, W as CommentThreadItem, Wt as PreviewCardContextValue, Y as EnhancedObjectDialogContextValue, bt as FormValueContextValue, c as NavbarContextValue, dn as CommentMessage, f as StudioAnnouncementsContextValue, ht as ParseError, jt as FeedbackContextValue, k as RouterHistory, kn as UserListWithPermissionsHookValue, p as ConfigErrorClassification, pt as FormCallbacksValue, q as CommentsMode, qt as MetadataWrapper, rn as CommentsSelectedPathContextValue$1, s as UpsellDialogViewedInfo, t as VisibleWorkspacesContextValue, vt as PortableTextMemberItem, w as SearchContextValue, z as FormBuilderContextValue } from "./VisibleWorkspacesProvider-B6w6Mtxv.js";
import { C as StructureToolContextValue, O as PaneContextValue, k as PaneLayoutContextValue, n as DocumentPaneInfoContextValue, p as PaneNode, t as DocumentPaneContextValue, v as RouterPanes } from "./DocumentPaneContext-CWVXDuPK.js";
import { _ as RouterContextValue, r as IntentParameters$1 } from "./types-DEfyw-7V.js";
import { i as PaneRouterContextValue } from "./types-lQwFMubT.js";
import { g as PresentationParamsContextValue, h as PresentationNavigateContextValue, m as PresentationContextValue, v as PresentationPluginOptions } from "./types-BhjcxLtO.js";
import { CSSProperties, ComponentType, PropsWithChildren, ReactNode, RefObject } from "react";
import { ObservablePromise } from "react-rx";
import { BehaviorSubject } from "rxjs";
import { useRecordDocumentHistoryEvent } from "@sanity/sdk-react";
import { ArraySchemaType, ObjectSchemaType, Path, PortableTextBlock, ValidationMarker } from "@sanity/types";
import { SanityClient, SanityDocument as SanityDocument$1 } from "@sanity/client";
import { PubSub } from "nano-pubsub";
import { PortableTextEditor } from "@portabletext/editor";
import { PortableTextMemberSchemaTypes } from "@portabletext/sanity-bridge";
import { RouterState } from "sanity/router";
import { i18n } from "i18next";
import { SemVer } from "semver";
import { SanityDocument as SanityDocument$2 } from "sanity";
import { Serializable } from "@sanity/presentation-comlink";
/** @internal */
export declare const ActiveWorkspaceMatcherContext: import("react").Context<ActiveWorkspaceMatcherContextValue | null>;
/**
 * @beta
 * @hidden
 */
export declare const AddonDatasetContext: import("react").Context<AddonDatasetContextValue | null>;
interface StudioAppResponse {
  id: string;
  title?: string;
  type: 'studio' | string;
  urlType: 'internal' | 'external' | string;
  appHost: string;
}
interface StudioApp extends StudioAppResponse {
  studioUrl: string;
}
interface CompatibleStudioAppId {
  /**
   * AppId to use for the current origin
   */
  appId: string | undefined;
  /**
   * All available studio apps
   */
  studioApps: StudioApp[];
}
interface AppIdCache {
  get: (args: {
    projectId: string;
    appIdFetcher: AppIdFetcher;
  }) => Promise<CompatibleStudioAppId | undefined>;
}
type AppIdFetcher = (projectId: string) => Promise<CompatibleStudioAppId>;
/**
 * @internal
 */
export declare const AppIdCacheContext: import("react").Context<AppIdCache | null>;
/**
 * Holds a ref to the root DOM element of the closest array item wrapper.
 *
 * Inputs rendered inside an array item (e.g. reference inputs) use this to
 * treat interactions anywhere within the item — including UI rendered by
 * custom `item`/`input` form components around the default input — as
 * "inside" when handling outside clicks.
 *
 * @internal
 */
export declare const ArrayItemRootElementContext: import("react").Context<RefObject<HTMLDivElement | null> | null>;
/** @internal */
interface ArrayValidationState {
  maxReached: boolean;
  maxReachedReason: string | undefined;
}
/** @internal */
export declare const ArrayValidationContext: import("react").Context<ArrayValidationState | null>;
/**
 * @beta
 * @hidden
 */
interface UpsellData {
  _createdAt: string;
  _id: string;
  _rev: string;
  _type: string;
  _updatedAt: string;
  id: string;
  image: {
    asset: {
      url: string;
      altText: string | null;
    };
  } | null;
  descriptionText: PortableTextBlock[];
  ctaButton: {
    text: string;
    url: string;
  };
  secondaryButton: {
    url: string;
    text: string;
  };
}
/**
 * The settled outcome of an upsell data request: the data, or `hasError` when the request failed
 * or returned nothing. Never both.
 *
 * @internal
 */
interface UpsellDataResult {
  upsellData: UpsellData | null;
  hasError: boolean;
}
/**
 * @internal
 */
interface AssetLimitUpsellContextValue {
  upsellDialogOpen: boolean;
  handleOpenDialog: (source: UpsellDialogViewedInfo['source']) => void;
  upsellDataPromise: ObservablePromise<UpsellDataResult>;
  telemetryLogs: {
    dialogSecondaryClicked: () => void;
    dialogPrimaryClicked: () => void;
  };
}
/**
 * @internal
 */
export declare const AssetLimitUpsellContext: import("react").Context<AssetLimitUpsellContextValue | null>;
interface CalendarContextValue {
  date?: Date;
  endDate?: Date;
  focusedDate: Date;
  selectRange?: boolean;
  selectTime?: boolean;
  /**
   * An integer indicating the first day of the week.
   * Can be either 1 (Monday), 6 (Saturday) or 7 (Sunday).
   */
  firstWeekDay: 1 | 6 | 7;
}
/**
 * @internal
 */
export declare const CalendarContext: import("react").Context<CalendarContextValue | undefined>;
/**
 * @internal
 * @hidden
 */
type ChangeIndicatorTrackerContextStoreType = TrackerContextStore<ChangeIndicatorTrackerContextValue> | null;
/**
 * @internal
 * @hidden
 */
type ChangeIndicatorTrackerGetSnapshotType = TrackerContextGetSnapshot<ChangeIndicatorTrackerContextValue> | null;
/** @internal */
export declare const ChangeIndicatorTrackerContextStore: import("react").Context<ChangeIndicatorTrackerContextStoreType>;
/** @internal */
export declare const ChangeIndicatorTrackerContextGetSnapshot: import("react").Context<ChangeIndicatorTrackerGetSnapshotType>;
/**
 * The setter for ColorSchemeValueContext, in a separate context to avoid unnecessary re-renders
 * If set to false then the UI should adjust to reflect that the Studio can't change the color scheme
 * @internal
 */
export declare const ColorSchemeSetValueContext: import("react").Context<false | ((nextScheme: StudioThemeColorSchemeKey) => void) | null>;
/**
 * Used to keep track of the internal value, which can be "system" in addition to "light" and "dark"
 * @internal
 */
export declare const ColorSchemeValueContext: import("react").Context<StudioColorScheme | null>;
interface CommentInputContextValue$1 {
  canSubmit?: boolean;
  closeMentions: () => void;
  editor: PortableTextEditor;
  expandOnFocus?: boolean;
  focused: boolean;
  focusEditor: () => void;
  focusOnMount?: boolean;
  hasChanges: boolean;
  insertAtChar: () => void;
  insertMention: (userId: string) => void;
  mentionOptions: UserListWithPermissionsHookValue;
  mentionsMenuOpen: boolean;
  mentionsSearchTerm: string;
  onBeforeInput: (event: InputEvent) => void;
  openMentions: () => void;
  readOnly: boolean;
  value: CommentMessage;
}
/**
 * @internal
 */
export declare const CommentInputContext: import("react").Context<CommentInputContextValue$1 | null>;
interface CommentInputContextValue {
  canSubmit?: boolean;
  closeMentions: () => void;
  editor: PortableTextEditor;
  expandOnFocus?: boolean;
  focused: boolean;
  focusEditor: () => void;
  focusOnMount?: boolean;
  hasChanges: boolean;
  insertAtChar: () => void;
  insertMention: (userId: string) => void;
  mentionOptions: UserListWithPermissionsHookValue;
  mentionsMenuOpen: boolean;
  mentionsSearchTerm: string;
  onBeforeInput: (event: InputEvent) => void;
  openMentions: () => void;
  readOnly: boolean;
  value: CommentMessage$1;
}
/**
 * @internal
 */
export declare const CommentInputContextV2: import("react").Context<CommentInputContextValue | null>;
/**
 * @beta
 * @hidden
 */
interface CommentsAuthoringPathContextValue$1 {
  setAuthoringPath: (nextAuthoringPath: string | null) => void;
  authoringPath: string | null;
}
/**
 * @beta
 * @hidden
 */
export declare const CommentsAuthoringPathContext: import("react").Context<CommentsAuthoringPathContextValue$1 | null>;
/**
 * @beta
 * @hidden
 */
interface CommentsAuthoringPathContextValue {
  setAuthoringPath: (nextAuthoringPath: string | null) => void;
  authoringPath: string | null;
}
/**
 * @beta
 * @hidden
 */
export declare const CommentsAuthoringPathContextV2: import("react").Context<CommentsAuthoringPathContextValue | null>;
/**
 * @internal
 */
export declare const CommentsContext: import("react").Context<CommentsContextValue$1 | null>;
/**
 * @beta
 * @hidden
 */
interface CommentsContextValue {
  /**
   * Published / group id used to load comments for this pane.
   */
  groupId: string;
  documentType: string;
  /**
   * Exact document in the editor. Compared to `target.sourceDocumentId`.
   */
  versionId: string;
  getComment: (id: string) => CommentDocument | undefined;
  getCommentLink?: (id: string) => string;
  selectedCommentId?: string | undefined;
  onClearSelectedComment?: () => void;
  isCommentsOpen?: boolean;
  onCommentsOpen?: () => void;
  isConnecting?: boolean;
  onPathOpen?: (path: Path) => void;
  comments: {
    data: {
      open: CommentThreadItem[];
      resolved: CommentThreadItem[];
    };
    error: Error | null;
    loading: boolean;
  };
  operation: {
    create: CommentOperations['create'];
    remove: CommentOperations['remove'];
    update: CommentOperations['update'];
    updateRange: CommentOperations['updateRange'];
    react: CommentOperations['react'];
  };
  mentionOptions: UserListWithPermissionsHookValue;
  readOnly: boolean;
  status: CommentStatus;
  setStatus: (status: CommentStatus) => void;
}
/**
 * @internal
 */
export declare const CommentsContextV2: import("react").Context<CommentsContextValue | null>;
/**
 * Whether comments are enabled for the document being rendered, as the `CommentsEnabledProvider`
 * of whichever comments plugin is active resolves it from the workspace's
 * `document.comments.enabled` config (only one of the two plugins is registered at a time).
 * Synchronous; the plan check behind `CommentsModePromiseContext` only decides the mode. Defaults
 * to `false` so that document UI rendered without the provider shows no comments.
 * @internal
 */
export declare const CommentsEnabledContext: import("react").Context<boolean>;
type CommentsIntentContextValue = (comment: {
  id: string;
  type: string;
  path: string;
}) => {
  title: string;
  name: string;
  params: IntentParameters$1;
} | undefined;
/**
 * @internal
 */
export declare const CommentsIntentContext: import("react").Context<CommentsIntentContextValue | undefined>;
/**
 * The comments mode as a promise for `use()`, provided by the `CommentsStudioProvider` of
 * whichever comments plugin is active (only one of the two is registered at a time). Settles once
 * the comments feature check has answered.
 * @internal
 */
export declare const CommentsModePromiseContext: import("react").Context<Promise<CommentsMode> | null>;
interface CommentsOnboardingContextValue$1 {
  isDismissed: boolean;
  setDismissed: () => void;
}
/**
 * @internal
 */
export declare const CommentsOnboardingContext: import("react").Context<CommentsOnboardingContextValue$1 | null>;
interface CommentsOnboardingContextValue {
  isDismissed: boolean;
  setDismissed: () => void;
}
/**
 * @internal
 */
export declare const CommentsOnboardingContextV2: import("react").Context<CommentsOnboardingContextValue | null>;
/**
 * @internal
 */
export declare const CommentsSelectedPathContext: import("react").Context<CommentsSelectedPathContextValue$1 | null>;
/**
 * @internal
 */
interface CommentsSelectedPath {
  origin: 'form' | 'inspector' | 'url';
  fieldPath: string | null;
  threadId: string | null;
}
/**
 * @internal
 */
interface CommentsSelectedPathContextValue {
  setSelectedPath: (nextSelectedPath: CommentsSelectedPath | null) => void;
  selectedPath: CommentsSelectedPath | null;
}
/**
 * @internal
 */
export declare const CommentsSelectedPathContextV2: import("react").Context<CommentsSelectedPathContextValue | null>;
interface CommentsUpsellContextValue$1 {
  upsellDialogOpen: boolean;
  handleOpenDialog: (source: UpsellDialogViewedInfo['source']) => void;
  handleClose: () => void;
  /**
   * The upsell content, settled once its request has answered, or `null` outside the provider.
   * Read it with `use()` in the leaf that renders the content, under a `Suspense` boundary.
   */
  upsellDataPromise: ObservablePromise<UpsellDataResult> | null;
  telemetryLogs: {
    dialogSecondaryClicked: () => void;
    dialogPrimaryClicked: () => void;
    panelViewed: (source: UpsellDialogViewedInfo['source']) => void;
    panelDismissed: () => void;
    panelPrimaryClicked: () => void;
    panelSecondaryClicked: () => void;
  };
}
/**
 * @internal
 */
export declare const CommentsUpsellContext: import("react").Context<CommentsUpsellContextValue$1 | null>;
interface CommentsUpsellContextValue {
  upsellDialogOpen: boolean;
  handleOpenDialog: (source: UpsellDialogViewedInfo['source']) => void;
  handleClose: () => void;
  /**
   * The upsell content, settled once its request has answered, or `null` outside the provider.
   * Read it with `use()` in the leaf that renders the content, under a `Suspense` boundary.
   */
  upsellDataPromise: ObservablePromise<UpsellDataResult> | null;
  telemetryLogs: {
    dialogSecondaryClicked: () => void;
    dialogPrimaryClicked: () => void;
    panelViewed: (source: UpsellDialogViewedInfo['source']) => void;
    panelDismissed: () => void;
    panelPrimaryClicked: () => void;
    panelSecondaryClicked: () => void;
  };
}
/**
 * @internal
 */
export declare const CommentsUpsellContextV2: import("react").Context<CommentsUpsellContextValue | null>;
/**
 * A workspace configuration error (missing project / dataset) detected
 * during boot by `WorkspacesProvider`'s request handler. Surfaced through
 * context so it can be rendered lower in the tree — below
 * `ActiveWorkspaceMatcher` — where the workspace-switcher hooks are
 * available.
 *
 * @internal
 */
interface ConfigErrorValue {
  error: ConfigErrorClassification;
  isStaging: boolean;
  projectId?: string;
  dataset?: string;
}
/** @internal */
export declare const ConfigErrorContext: import("react").Context<ConfigErrorValue | null>;
/**
 * @beta
 * @hidden
 */
export declare const CopyPasteContext: import("react").Context<CopyPasteContextType | null>;
/**
 * Entry in the dialog stack.
 *
 * @beta
 */
interface DialogStackEntry {
  id: string;
  path?: Path;
}
/**
 * Context value for tracking the dialog stack.
 *
 * @beta
 */
interface DialogStackContextValue {
  /** Stack of dialog entries, last one is the top */
  stack: DialogStackEntry[];
  /** Push a dialog onto the stack */
  push: (id: string, path?: Path) => void;
  /** Remove a dialog from the stack */
  remove: (id: string) => void;
  /** Update the path of an existing dialog entry */
  update: (id: string, path?: Path) => void;
  /** Close dialogs. Pass `{ toParent: true }` to close only the top dialog and navigate to the parent. */
  close: (options?: {
    /**
     * When true, closes only the top dialog and navigates to its parent path.
     * When false or omitted, closes all dialogs and resets to the root path.
     */
    toParent?: boolean;
  }) => void;
  /** Navigate to a specific path, updating the form path and cleaning up stack entries that are at or deeper than the target. */
  navigateTo: (path: Path) => void;
}
/**
 * Context for tracking the stack of open dialogs.
 *
 * @beta
 */
export declare const DialogStackContext: import("react").Context<DialogStackContextValue | null>;
/** @internal */
export declare const DiffContext: import("react").Context<{
  path: Path;
}>;
/**
 * @internal
 */
export declare const DocumentActionPropsContext: import("react").Context<DocumentActionProps | undefined>;
/**
 * @internal
 */
export declare const DocumentActionsStateContext: import("react").Context<DocumentActionDescription[] | null>;
/** @internal */
export declare const DocumentChangeContext: import("react").Context<DocumentChangeContextInstance | null>;
/**
 * @internal
 */
type DocumentDivergencesContextValue = (DivergenceNavigator & {
  enabled: true;
  sessionId: string;
}) | {
  enabled: false;
  sessionId: null;
};
/**
 * @internal
 */
export declare const DocumentDivergencesContext: import("react").Context<DocumentDivergencesContextValue>;
/**
 * @internal
 */
interface DocumentFieldActionsContextValue {
  actions: DocumentFieldAction$1[];
}
/**
 * @internal
 */
export declare const DocumentFieldActionsContext: import("react").Context<DocumentFieldActionsContextValue | null>;
/**
 * @internal
 */
type DocumentHistoryHandle = Parameters<typeof useRecordDocumentHistoryEvent>[0];
/**
 * @internal
 */
type DocumentHistoryEventType = Parameters<ReturnType<typeof useRecordDocumentHistoryEvent>['recordEvent']>[0];
/**
 * @internal
 */
type RecordDocumentHistoryEvent = (document: DocumentHistoryHandle, eventType: DocumentHistoryEventType) => void;
/**
 * @internal
 */
export declare const DocumentHistoryContext: import("react").Context<RecordDocumentHistoryEvent>;
/**
 * @internal
 */
interface DocumentIdContextValue {
  id: string;
}
/**
 * @internal
 */
export declare const DocumentIdContext: import("react").Context<DocumentIdContextValue | null>;
/**
 * @internal
 */
interface DocumentLimitUpsellContextValue {
  upsellDialogOpen: boolean;
  handleOpenDialog: (source: UpsellDialogViewedInfo['source']) => void;
  handleClose: () => void;
  upsellDataPromise: ObservablePromise<UpsellDataResult>;
  telemetryLogs: {
    dialogSecondaryClicked: () => void;
    dialogPrimaryClicked: () => void;
    panelPrimaryClicked: () => void;
    panelSecondaryClicked: () => void;
  };
}
/**
 * @internal
 */
export declare const DocumentLimitUpsellContext: import("react").Context<DocumentLimitUpsellContextValue | null>;
/** @internal */
export declare const DocumentPaneContext: import("react").Context<DocumentPaneContextValue | null>;
/** @internal */
export declare const DocumentPaneInfoContext: import("react").Context<DocumentPaneInfoContextValue | null>;
/** @internal */
interface EditDialogOuterBoundaryContextValue {
  element: HTMLElement | null;
}
/**
 * @internal
 * @deprecated No longer provided or read by the studio. Popovers that may escape a dialog
 * (array insert menu, reference autocomplete results) now use the boundary declared by the hosting
 * surface through `PortalBoundaryContext` / `PortalBoundaryProvider`. Kept exported so the
 * `sanity/_singletons` surface does not break; will be removed in the next major.
 */
export declare const EditDialogOuterBoundaryContext: import("react").Context<EditDialogOuterBoundaryContextValue | null>;
/**
 * @internal
 * @deprecated This context is no longer used and will be removed in a future release as we make the enhanced object dialog the default.
 */
export declare const EnhancedObjectDialogContext: import("react").Context<EnhancedObjectDialogContextValue>;
/**
 * @internal
 */
export declare const EventsContext: import("react").Context<EventsStore | null>;
/** @internal */
export declare const FeedbackContext: import("react").Context<FeedbackContextValue>;
/** @internal */
interface FieldActionsContextValue {
  actions: DocumentFieldActionNode$1[];
  __internal_comments?: FieldCommentsProps;
  __internal_slot?: ReactNode;
  focused?: boolean;
  hovered: boolean;
  onMouseEnter: () => void;
  onMouseLeave: () => void;
}
/** @internal */
export declare const FieldActionsContext: import("react").Context<FieldActionsContextValue>;
/**
 * @internal
 */
export declare const FormBuilderContext: import("react").Context<FormBuilderContextValue | null>;
/**
 * @internal
 */
export declare const FormCallbacksContext: import("react").Context<FormCallbacksValue | null>;
/** @internal */
export declare const FormFieldPresenceContext: import("react").Context<FormNodePresence[]>;
/**
 * @internal
 */
export declare const FormValueContext: import("react").Context<FormValueContextValue | null>;
interface FreeTrialResponse {
  id: string;
  icon: string;
  style: string;
  showOnLoad: FreeTrialDialog | null;
  showOnClick: FreeTrialDialog | null;
  daysLeft: number;
  totalDays: number;
}
interface FreeTrialDialog {
  _id: string;
  _type: 'dialog';
  _createdAt: string;
  ctaButton?: {
    text: string;
    action: 'openNext' | 'closeDialog' | 'openUrl';
    url?: string;
  };
  secondaryButton?: {
    text: string;
  };
  descriptionText: PortableTextBlock[];
  dialogType: 'modal' | 'popover';
  headingText: string;
  id: string;
  image: Image$1 | null;
  tags?: Tag[];
  _rev: string;
  _updatedAt: string;
}
interface Tag {
  _type: 'tag';
  _key: string;
  tag: string;
}
interface Image$1 {
  asset: {
    url: string;
    altText: string | null;
  };
}
/**
 * @internal
 */
interface FreeTrialContextProps {
  data: FreeTrialResponse | null;
  showDialog: boolean;
  showOnLoad: boolean;
  /**
   * If the user is seeing the `showOnLoad` popover or modal, and clicks on the pricing button the `showOnClick` modal should be triggered.
   */
  toggleShowContent: (closeAndReOpen?: boolean) => void;
}
/**
 * @internal
 */
export declare const FreeTrialContext: import("react").Context<FreeTrialContextProps | undefined>;
/**
 * Context for tracking fullscreen state of portable text editors by their path
 * @internal
 */
interface FullscreenPTEContextValue {
  /**
   * Get the fullscreen state for a specific path
   */
  getFullscreenPath: (path: Path) => string | undefined;
  /**
   * Set the fullscreen state for a specific path
   */
  setFullscreenPath: (path: Path, isFullscreen: boolean) => void;
  /**
   * Check if any portable text editor is currently in fullscreen mode
   */
  hasAnyFullscreen: () => boolean;
  /**
   * Get all fullscreen paths
   */
  allFullscreenPaths: string[];
}
/**
 * @internal
 */
export declare const FullscreenPTEContext: import("react").Context<FullscreenPTEContextValue>;
/**
 * @internal
 * @hidden
 */
type GetFormValueContextValue = (path: Path) => unknown;
/**
 * @internal
 */
export declare const GetFormValueContext: import("react").Context<GetFormValueContextValue | null>;
/**
 * Whether the dataset has ever scheduled anything, as a promise for `use()`, provided by the
 * scheduled publishing plugin's studio provider. Settles once the usage probe has answered (at
 * once, as `true`, when the workspace opted in to scheduled publishing explicitly). `null` where
 * the plugin is not loaded; read it as `promise ? use(promise) : false`.
 * @internal
 */
export declare const HasUsedScheduledPublishingPromiseContext: import("react").Context<Promise<boolean> | null>;
/** @internal */
interface HoveredFieldContextValue {
  store: {
    subscribe: (onStoreCallback: () => void) => () => void;
    getSnapshot: () => string[];
  };
  onMouseEnter: (path: Path) => void;
  onMouseLeave: (path: Path) => void;
}
/** @internal */
export declare const HoveredFieldContext: import("react").Context<HoveredFieldContextValue>;
/**
 * TODO: remove this context when alternate document-specific context are
 * introduced.
 *
 * The following context is used in the structure tool to set the active
 * document if it's the last pane open in the structure tool. This is a
 * temporary context provider that was introduced when the comments and tasks
 * plugins were refactor and decoupled from the structure tool. ideally this
 * should be removed and replaced with a document-specific context that gives
 * plugin authors access to what the `usePane`, `usePaneRouter`, and
 * `useDocumentPane` provides without exposing specifics from the structure tool
 */
/**
 * @internal
 */
export declare const IsLastPaneContext: import("react").Context<boolean>;
/**
 * User application from the API
 * @internal
 */
interface UserApplication {
  id: string;
  type: string;
  projectId?: string;
  organizationId?: string;
  title?: string;
  urlType: 'internal' | 'external';
  appHost: string;
}
/**
 * Cache for user applications fetched from the API.
 * Caches by projectId to avoid duplicate fetches.
 * @internal
 */
interface UserApplicationCache {
  /**
   * Get user applications for a project.
   * Returns cached results if available, otherwise fetches from API.
   */
  get: (client: SanityClient) => Promise<UserApplication[]>;
}
/**
 * @hidden
 * @internal
 */
type LiveUserApplicationContextValue = {
  userApplication: UserApplication | undefined;
  isLoading: boolean;
};
/**
 *
 * @hidden
 * @internal
 */
export declare const LiveUserApplicationContext: import("react").Context<LiveUserApplicationContextValue>;
/**
 * @internal
 * @hidden
 */
interface LocaleContextValue {
  locales: Locale[];
  currentLocale: Locale;
  __internal: {
    i18next: i18n;
  };
  changeLocale: (newLocale: string) => Promise<void>;
}
/**
 * @internal
 * @hidden
 */
export declare const LocaleContext: import("react").Context<LocaleContextValue | undefined>;
/**
 * Why the studio last logged the user out, surfaced on the auth screen as a
 * banner above the login form. `undefined` when the logged-out state isn't the
 * result of a forced logout (e.g. a normal cold load with no session).
 *
 * Mirrors the API's invalid-session 401 codes: `session-expired` for
 * `SIO-401-AEX`, `session-not-found` for `SIO-401-ANF` (session revoked,
 * purged, or the stored token is stale).
 *
 * @internal
 */
type LoggedOutReason = 'session-expired' | 'session-not-found';
/** @internal */
export declare const LoggedOutReasonContext: import("react").Context<LoggedOutReason | undefined>;
/** @internal */
type MediaLibraryIds = {
  libraryId: string;
  organizationId: string;
};
/** @internal */
export declare const MediaLibraryIdsContext: import("react").Context<MediaLibraryIds | null>;
/**
 * @internal
 */
interface MentionUserContextValue {
  mentionOptions: UserListWithPermissionsHookValue;
  selectedDocument: SanityDocument$1 | null;
  setSelectedDocument: (document: SanityDocument$1 | null) => void;
}
/**
 * @internal
 */
export declare const MentionUserContext: import("react").Context<MentionUserContextValue | null>;
/** @internal */
interface MountedToolsContextValue {
  /**
   * The root router state each inactive, still mounted tool was last active with, keyed by tool
   * name. Navigating to one of these tools restores that state instead of the tool's start page.
   * Empty unless `beta.reactActivityMode` is enabled. A `Map` rather than an object so a
   * tool named like an `Object.prototype` member (`constructor`, `__proto__`) cannot be mistaken
   * for a saved state.
   */
  inactiveToolStates: ReadonlyMap<string, RouterState>;
}
/** @internal */
export declare const MountedToolsContext: import("react").Context<MountedToolsContextValue>;
/** @internal */
export declare const NavbarContext: import("react").Context<NavbarContextValue>;
/**
 * @hidden
 * @internal
 */
interface PackageVersionDeprecation {
  /** The deprecated version: the running version, or the pinned version a reload would apply */
  version: SemVer;
  /** Human readable explanation set when the version was deprecated, if any */
  reason?: string;
  /** True when this Studio is auto-updating and pinned to the deprecated version */
  isPinned: boolean;
}
/**
 * @hidden
 * @internal
 */
type PackageVersionInfoContextValue = {
  /**
   * Request a new update check
   */
  checkForUpdates: () => void;
  /**
   * Status of version check (i.e. are we currently checking for updates)
   */
  versionCheckStatus: {
    lastCheckedAt: Date | null;
    checking: boolean;
  };
  /**
   * Whether this Studio is configured to be auto-updating
   */
  isAutoUpdating: boolean;
  /**
   * If an importmap for the sanity module exists in the DOM, includes details
   * will be undefined if no importmap is found
   */
  importMapInfo?: {
    valid: false;
    error: Error;
  } | {
    valid: true;
    minVersion: SemVer;
    appId?: string;
  };
  /**
   * What is the version tagged as latest (periodically checked)
   */
  latestTaggedVersion?: SemVer;
  /**
   * What version is the Studio currently running
   */
  currentVersion: SemVer;
  /**
   * What is the current auto-updating version (as periodically resolved via module server and configured via manage).
   * This is the version the module CDN will serve for the studio's import map URL, so a reload
   * applies exactly this version — it may also be below the current version (e.g. a pinned rollback).
   */
  autoUpdatingVersion?: SemVer;
  /**
   * Set when the user should be warned about a deprecated version: this Studio either is not
   * auto-updating and runs a deprecated version, or is auto-updating but pinned (via manage) to a
   * deprecated version so a reload would still land on it. Not set when a reload fixes it, since
   * the regular "new version available" state already covers that.
   */
  versionDeprecation?: PackageVersionDeprecation;
};
/**
 *
 * @hidden
 * @internal
 */
export declare const PackageVersionInfoContext: import("react").Context<PackageVersionInfoContextValue>;
/**
 * @internal
 */
export declare const PaneContext: import("react").Context<PaneContextValue | null>;
/**
 * @internal
 */
export declare const PaneLayoutContext: import("react").Context<PaneLayoutContextValue | null>;
/**
 *
 * @hidden
 * @beta
 */
export declare const PaneRouterContext: import("react").Context<PaneRouterContextValue>;
/**
 * @internal
 */
interface PortalBoundaryContextValue {
  /** The visible region for content rendered through `portalElement`, or `null` while unmounted. */
  element: HTMLElement | null;
  /** The portal target the boundary belongs to — the surface's `PortalProvider` element. */
  portalElement: HTMLElement | null;
}
/**
 * The Floating UI boundary for popovers that are allowed to overflow their immediate scroll box
 * and are rendered through the current portal — the visible region of the surface that hosts the
 * portal (typically the document pane's scroll container, which sits between the sticky pane
 * header and footer).
 *
 * Declared by the surface that owns a portal target (see `PortalBoundaryProvider`), never
 * inferred from where the reference element happens to sit in the DOM. Dialogs shadow the
 * ambient `BoundaryElementProvider` with their own scroll container (#12721) but must not shadow
 * this, so popovers that escape the dialog (array insert menu, reference autocomplete results)
 * still respect the hosting pane's chrome.
 *
 * The boundary only applies to consumers that still render into `portalElement`; content that
 * provides its own `PortalProvider` (a body-level dialog, for instance) leaves the surface and
 * the boundary with it. `null` means no host has declared a boundary.
 *
 * @internal
 */
export declare const PortalBoundaryContext: import("react").Context<PortalBoundaryContextValue | null>;
/**
 * Setter passed to inputs via `useReportParseError`. Inputs register a
 * transient parse error keyed by `@sanity/util/paths` `toString(path)`, or
 * clear it by passing `null`.
 *
 * @internal
 */
type SetParseError = (pathKey: string, value: ParseError | null) => void;
interface ParseErrorsContextValue {
  errors: Record<string, ParseError>;
  set: SetParseError;
}
/**
 * @internal
 */
export declare const ParseErrorsContext: import("react").Context<ParseErrorsContextValue>;
/**
 *
 * @hidden
 * @beta
 */
export declare const PerspectiveContext: import("react").Context<PerspectiveContextValue | null>;
/**
 * @internal
 */
export declare const PortableTextMarkersContext: import("react").Context<PortableTextMarker[]>;
/** @internal */
type PortableTextEditorElement = HTMLDivElement | HTMLSpanElement;
/**
 * @internal
 */
export declare const PortableTextMemberItemElementRefsContext: import("react").Context<BehaviorSubject<Record<string, PortableTextEditorElement | null | undefined>>>;
/**
 * @internal
 */
export declare const PortableTextMemberItemsContext: import("react").Context<PortableTextMemberItem[]>;
/**
 * Context for Sanity-specific schema types for Portable Text.
 * This provides access to the full Sanity schema types instead of relying on
 * `editor.schemaTypes` from PTE, which will contain minimal PT schema types
 * when PTE removes its Sanity dependencies.
 *
 * @internal
 */
export declare const PortableTextMemberSchemaTypesContext: import("react").Context<PortableTextMemberSchemaTypes | null>;
/**
 * @internal
 */
export declare const PresenceContext: import("react").Context<FormNodePresence[]>;
/**
 * @internal
 * @hidden
 */
type PresenceTrackerContextStoreType = TrackerContextStore<FieldPresenceData> | null;
/**
 * @internal
 * @hidden
 */
type PresenceTrackerGetSnapshotType = TrackerContextGetSnapshot<FieldPresenceData> | null;
/** @internal */
export declare const PresenceTrackerContextStore: import("react").Context<PresenceTrackerContextStoreType>;
/** @internal */
export declare const PresenceTrackerContextGetSnapshot: import("react").Context<PresenceTrackerGetSnapshotType>;
/**
 * @internal
 */
export declare const PresentationContext: import("react").Context<PresentationContextValue | null>;
/** @internal */
type PresentationDisplayedDocumentContextValue = (displayed: Partial<SanityDocument$2> | null | undefined) => void;
/**
 * @internal
 */
export declare const PresentationDisplayedDocumentContext: import("react").Context<PresentationDisplayedDocumentContextValue | null>;
interface PresentationDocumentContextValue {
  options: PresentationPluginOptions[];
  register: (options: PresentationPluginOptions) => () => void;
}
/**
 * @internal
 */
export declare const PresentationDocumentContext: import("react").Context<PresentationDocumentContextValue | null>;
/**
 * @internal
 */
export declare const PresentationNavigateContext: import("react").Context<PresentationNavigateContextValue | null>;
interface PanelElement {
  id: string;
  type: 'panel';
  defaultSize: number | null;
  order: number;
  maxWidth: number | null;
  minWidth: number;
}
interface ResizerElement {
  id: string;
  order: number;
  type: 'resizer';
  el: RefObject<HTMLDivElement | null>;
}
interface PresentationPanelsContextValue {
  activeResizer: string | null;
  drag: (id: string, event: MouseEvent) => void;
  getPanelStyle: (id: string) => React.CSSProperties;
  registerElement: (id: string, panel: PanelElement | ResizerElement) => void;
  startDragging: (id: string, event: MouseEvent) => void;
  stopDragging: () => void;
  unregisterElement: (id: string) => void;
}
/**
 * @internal
 */
export declare const PresentationPanelsContext: import("react").Context<PresentationPanelsContextValue | null>;
/**
 * @internal
 */
export declare const PresentationParamsContext: import("react").Context<PresentationParamsContextValue | null>;
interface PresentationSharedStateContextValue {
  removeValue: (key: string) => void;
  setValue: (key: string, value: Serializable) => void;
}
/**
 * @internal
 */
export declare const PresentationSharedStateContext: import("react").Context<PresentationSharedStateContextValue | null>;
/**
 * @internal
 */
export declare const PreviewCardContext: import("react").Context<PreviewCardContextValue>;
/**
 * @internal
 */
export declare const ReferenceInputOptionsContext: import("react").Context<ReferenceInputOptions>;
/**
 * @internal
 */
interface ReferenceItemRef {
  menuRef: RefObject<HTMLDivElement | null>;
  menuButtonRef: RefObject<HTMLButtonElement | null>;
  containerRef: RefObject<HTMLDivElement | null>;
}
/**
 * This is a way to store ref of the menu as well as the container of the ReferenceItem
 * so it can be used down the tree for clickOutside handling
 * @internal
 */
export declare const ReferenceItemRefContext: import("react").Context<ReferenceItemRef | null>;
/**
 * @internal
 */
interface ReleasesMetadataContextValue {
  state: MetadataWrapper;
  addReleaseIdsToListener: (slugs: string[]) => void;
  removeReleaseIdsFromListener: (slugs: string[]) => void;
}
/**
 * @internal
 * @hidden
 */
export declare const ReleasesMetadataContext: import("react").Context<ReleasesMetadataContextValue | null>;
type SortDirection = 'asc' | 'desc';
interface TableSort {
  column: string;
  direction: SortDirection;
}
/**
 * @internal
 */
interface TableContextValue {
  searchTerm: string | null;
  setSearchTerm: (searchTerm: string) => void;
  sort: TableSort | null;
  setSortColumn: (column: string) => void;
}
/**
 * @internal
 */
export declare const TableContext: import("react").Context<TableContextValue | null>;
interface ReleasesUpsellContextValue {
  /**
   * Is upsell mode when the user has reached the release limit
   * Is default mode when the user has not reached the release limits
   */
  mode: 'upsell' | 'default';
  upsellDialogOpen: boolean;
  /**
   * The upsell content, settled once its request has answered, or `null` outside the provider.
   * Read it with `use()` in the leaf that renders the content, under a `Suspense` boundary.
   */
  upsellDataPromise: ObservablePromise<UpsellDataResult> | null;
  guardWithReleaseLimitUpsell: (callback: () => void, throwError?: boolean, whenResolved?: (hasPassed: boolean) => void) => Promise<false | void>;
  onReleaseLimitReached: (limit: number) => void;
  handleOpenDialog: (source?: UpsellDialogViewedInfo['source']) => void;
  telemetryLogs: {
    dialogSecondaryClicked: () => void;
    dialogPrimaryClicked: () => void;
    panelViewed: (source: UpsellDialogViewedInfo['source']) => void;
    panelDismissed: () => void;
    panelPrimaryClicked: () => void;
    panelSecondaryClicked: () => void;
  };
}
/**
 * @beta
 * @hidden
 */
export declare const ReleasesUpsellContext: import("react").Context<ReleasesUpsellContextValue | null>;
declare const LOADING_PANE: unique symbol;
interface PaneData {
  active: boolean;
  childItemId: string | null;
  groupIndex: number;
  index: number;
  itemId: string;
  key: string;
  pane: PaneNode | typeof LOADING_PANE;
  params: Record<string, string | undefined> & {
    perspective?: string;
  };
  path: string;
  payload: unknown;
  selected: boolean;
  siblingIndex: number;
  maximized: boolean;
}
interface Panes {
  paneDataItems: PaneData[];
  routerPanes: RouterPanes;
  resolvedPanes: (PaneNode | typeof LOADING_PANE)[];
  maximizedPane: PaneData | null;
  setMaximizedPane: (pane: PaneData | null) => void;
}
/**
 * @internal
 */
export declare const ResolvedPanesContext: import("react").Context<Panes | null>;
/**
 * @internal
 */
export declare function ResolvedPanesProvider({ children, value }: {
  children: ReactNode;
  value: Panes;
}): import("react").JSX.Element;
/**
 * @internal
 */
export declare const ResourceCacheContext: import("react").Context<ResourceCache | null>;
/** @internal */
export declare const ReviewChangesContext: import("react").Context<ConnectorContextValue>;
/**
 * @internal
 */
export declare const RouterContext: import("react").Context<RouterContextValue | null>;
/**
 * Internal use only. Userland should leverage the public `useRouter` APIs.
 * @internal
 */
export declare const RouterHistoryContext: import("react").Context<RouterHistory | null>;
/**
 * Whether the workspace has scheduled publishing enabled, provided by the scheduled publishing
 * plugin's studio provider. `false` where the plugin is not loaded, which is what the code outside
 * the plugin (`StudioToolMenu`) reads. Whether the feature is in use is answered separately, by
 * `ScheduledPublishingModePromiseContext` and `HasUsedScheduledPublishingPromiseContext`.
 * @internal
 */
export declare const ScheduledPublishingEnabledContext: import("react").Context<boolean>;
/**
 * `'default'` when the plan has scheduled publishing, `'upsell'` when it does not, `null` when
 * the feature check failed.
 * @internal
 */
type ScheduledPublishingMode = 'default' | 'upsell' | null;
/**
 * The scheduled publishing mode as a promise for `use()`, provided by the scheduled publishing
 * plugin's studio provider. Settles once the feature check has answered: `'default'` when the plan
 * has the feature, `'upsell'` when it does not, `null` when the check failed. `null` where the
 * plugin is not loaded; read it as `promise ? use(promise) : null`.
 * @internal
 */
export declare const ScheduledPublishingModePromiseContext: import("react").Context<Promise<ScheduledPublishingMode> | null>;
/**
 * @internal
 */
interface SchedulePublishUpsellContextValue {
  upsellDialogOpen: boolean;
  handleOpenDialog: (source: UpsellDialogViewedInfo['source']) => void;
  handleClose: () => void;
  /**
   * The upsell content, settled once its request has answered, or `null` outside the provider.
   * Read it with `use()` in the leaf that renders the content, under a `Suspense` boundary.
   */
  upsellDataPromise: ObservablePromise<UpsellDataResult> | null;
  telemetryLogs: {
    dialogSecondaryClicked: () => void;
    dialogPrimaryClicked: () => void;
    panelViewed: (source: UpsellDialogViewedInfo['source']) => void;
    panelDismissed: () => void;
    panelPrimaryClicked: () => void;
    panelSecondaryClicked: () => void;
  };
}
/**
 * @internal
 */
export declare const SchedulePublishUpsellContext: import("react").Context<SchedulePublishUpsellContextValue>;
/**
 * @deprecated we will be dropping support for scheduled publishing on a future major version
 * @internal
 */
export declare const SchedulesContext: import("react").Context<SchedulesContextValue | undefined>;
/**
 * @internal
 */
export declare const ScrollContext: import("react").Context<PubSub<Event> | null>;
/**
 * @internal
 */
export declare const SearchContext: import("react").Context<SearchContextValue | undefined>;
/**
 * Entry representing a selected annotation for the combined popover
 * @internal
 */
interface AnnotationEntry {
  key: string;
  title: string;
  schemaType: ObjectSchemaType;
  onOpen: () => void;
  onRemove: () => void;
  referenceElement: HTMLElement | null;
}
/**
 * Context value for tracking selected annotations
 * @internal
 */
interface SelectedAnnotationsContextValue {
  register: (entry: AnnotationEntry) => void;
  unregister: (key: string) => void;
  annotations: AnnotationEntry[];
}
/**
 * Context for managing selected annotations in the Portable Text editor.
 * Used by CombinedAnnotationPopover to show all active annotations in a single popover.
 * @internal
 */
export declare const SelectedAnnotationsContext: import("react").Context<SelectedAnnotationsContextValue | null>;
/**
 * @internal
 */
interface SingleDocReleaseContextValue {
  /**
   * Sets the scheduled draft perspective into the local router params.
   */
  onSetScheduledDraftPerspective: (releaseId: string) => void;
}
/**
 * @internal
 */
export declare const SingleDocReleaseContext: import("react").Context<SingleDocReleaseContextValue | null>;
/**
 * @internal
 */
type SingleDocReleaseEnabledContextValue = {
  enabled: false;
  mode: null;
} | {
  enabled: true;
  mode: 'default' | 'upsell';
};
/**
 * @internal
 */
export declare const SingleDocReleaseEnabledContext: import("react").Context<SingleDocReleaseEnabledContextValue>;
/**
 * @internal
 */
interface SingleDocReleaseUpsellContextValue {
  upsellDialogOpen: boolean;
  handleOpenDialog: (source: UpsellDialogViewedInfo['source']) => void;
  handleClose: () => void;
  /**
   * The upsell content, settled once its request has answered, or `null` outside the provider.
   * Read it with `use()` in the leaf that renders the content, under a `Suspense` boundary.
   */
  upsellDataPromise: ObservablePromise<UpsellDataResult> | null;
  telemetryLogs: {
    dialogSecondaryClicked: () => void;
    dialogPrimaryClicked: () => void;
    panelViewed: (source: UpsellDialogViewedInfo['source']) => void;
    panelDismissed: () => void;
    panelPrimaryClicked: () => void;
    panelSecondaryClicked: () => void;
  };
}
/**
 * @internal
 */
export declare const SingleDocReleaseUpsellContext: import("react").Context<SingleDocReleaseUpsellContextValue>;
/**
 * @internal
 */
export declare const SortableItemIdContext: import("react").Context<string | null>;
/**
 * @internal
 */
export declare const SourceContext: import("react").Context<Source$1 | null>;
/**
 * @internal
 */
export declare const StructureToolContext: import("react").Context<StructureToolContextValue | null>;
/**
 * @internal
 */
export declare const StudioAnnouncementContext: import("react").Context<StudioAnnouncementsContextValue | undefined>;
/** @internal */
export declare const StudioErrorHandlerContext: import("react").Context<StudioErrorHandler | null>;
/**
 * @beta
 * @hidden
 */
type TaskMessage = PortableTextBlock[] | null;
/**
 * @beta
 * @hidden
 */
type TaskStatus = 'open' | 'closed';
/**
 * @beta
 * @hidden
 */
interface TaskContext {
  tool?: string;
  payload?: Record<string, unknown>;
  notification?: {
    url: string;
    workspaceTitle: string;
    targetContentTitle: string | null;
    targetContentImageUrl: string | null;
  };
}
interface TaskCreateRetryingState {
  type: 'createRetrying';
}
interface TaskCreateFailedState {
  type: 'createError';
  error: Error;
}
/**
 * The state is used to track the state of the task (e.g. if it failed to be created, etc.)
 * It is a local value and is not stored on the server.
 * When there's no state, the task is considered to be in a "normal" state (e.g. created successfully).
 *
 * The state value is primarily used to update the UI. That is, to show an error message or retry button.
 */
type TaskState = TaskCreateFailedState | TaskCreateRetryingState | undefined;
interface TaskTarget {
  documentType: string;
  document: {
    _dataset: string;
    _projectId: string;
    _ref: string;
    _type: 'crossDatasetReference';
    _weak: boolean;
  };
  /**
   * Set when the task was created for a version document (a release or variant version): the
   * version segment of the document id (release id or variant scope id). The reference itself
   * always stores the published id, so this is needed to resolve the exact version document the
   * task belongs to. Absent for tasks targeting the draft/published document.
   */
  documentVersionId?: string;
}
/**
 * @beta
 * @hidden
 */
interface TaskDocument {
  _type: 'tasks.task';
  _createdAt: string;
  _updatedAt: string;
  _id: string;
  _rev: string;
  _state?: TaskState;
  title: string;
  description?: TaskMessage;
  status: TaskStatus;
  lastEditedAt?: string;
  context?: TaskContext;
  authorId: string;
  dueBy?: string;
  assignedTo?: string;
  subscribers?: string[];
  target?: TaskTarget;
  /**
   * Date representing when the task was created by the user and not by the system. When the `create task` button was clicked.
   */
  createdByUser?: string;
}
/**
 * @beta
 * @hidden
 */
type ActiveDocument = {
  documentId: string;
  documentType: string;
};
/**
 * @beta
 * @hidden
 */
interface TasksContextValue {
  activeDocument: ActiveDocument | null;
  setActiveDocument: (document: ActiveDocument | null) => void;
  data: TaskDocument[];
  isLoading: boolean;
}
/**
 * @internal
 */
export declare const TasksContext: import("react").Context<TasksContextValue | null>;
/**
 * `'default'` when the plan has the tasks feature, `'upsell'` when it does not, `null` when the
 * feature check failed.
 * @internal
 */
type TasksMode = 'default' | 'upsell' | null;
/**
 * The tasks mode as a promise for `use()`, provided by `TasksStudioProvider`. Settles once the
 * tasks feature check has answered, so only the UI that tells upsell from default waits for it.
 * @internal
 */
export declare const TasksModePromiseContext: import("react").Context<Promise<TasksMode> | null>;
type SidebarTabsIds = 'assigned' | 'subscribed' | 'document';
type ViewMode = 'create' | 'edit' | 'list' | 'draft' | 'duplicate';
interface State {
  isOpen: boolean;
  viewMode: ViewMode;
  selectedTask: null | string;
  activeTabId: SidebarTabsIds;
  duplicateTaskValues: null | TaskDocument;
}
type ViewModeOptions = {
  type: 'list' | 'create';
} | {
  type: 'edit';
  id: string;
} | {
  type: 'duplicate';
  duplicateTaskValues: TaskDocument;
} | {
  type: 'draft';
  id: string;
};
type TasksNavigationContextValue = {
  state: State;
  setActiveTab: (id: SidebarTabsIds) => void;
  setViewMode: (options: ViewModeOptions) => void;
  handleCloseTasks: () => void;
  handleCopyLinkToTask: () => void;
  handleOpenTasks: () => void;
};
/**
 * @internal
 */
export declare const TasksNavigationContext: import("react").Context<TasksNavigationContextValue | null>;
interface TasksUpsellContextValue {
  upsellDialogOpen: boolean;
  handleOpenDialog: (source: UpsellDialogViewedInfo['source']) => void;
  handleClose: () => void;
  /**
   * The upsell content, settled once its request has answered, or `null` outside the provider.
   * Read it with `use()` in the leaf that renders the content, under a `Suspense` boundary.
   */
  upsellDataPromise: ObservablePromise<UpsellDataResult> | null;
  telemetryLogs: {
    dialogSecondaryClicked: () => void;
    dialogPrimaryClicked: () => void;
    panelViewed: (source: UpsellDialogViewedInfo['source']) => void;
    panelDismissed: () => void;
    panelPrimaryClicked: () => void;
    panelSecondaryClicked: () => void;
  };
}
/**
 * @beta
 * @hidden
 */
export declare const TasksUpsellContext: import("react").Context<TasksUpsellContextValue | null>;
/**
 * @internal
 */
export declare const UserApplicationCacheContext: import("react").Context<UserApplicationCache | null>;
/**
 * @internal
 */
export declare const UserColorManagerContext: import("react").Context<UserColorManager | null>;
/** @internal */
type UnclaimedProjectState = {
  status: 'unclaimed';
  claimUrl: string | undefined;
  expiresAt: Date;
  /** The lookup reported the claim link spent or gone — don't point the user at it. */
  claimLinkSpent?: boolean;
} | {
  status: 'expired';
};
/** @internal */
interface UnclaimedProjectContextValue {
  onClaim: () => void;
  state: UnclaimedProjectState | undefined;
}
/** @internal */
export declare const UnclaimedProjectContext: import("react").Context<UnclaimedProjectContextValue>;
/**
 * @internal
 */
export declare const ValidationContext: import("react").Context<ValidationMarker[]>;
/**
 * This is used to store the reference to the scroll element for virtualizer
 * @internal
 */
export declare const VirtualizerScrollInstanceContext: import("react").Context<VirtualizerScrollInstance | null>;
/** @internal */
export declare const VisibleWorkspacesContext: import("react").Context<VisibleWorkspacesContextValue | null>;
/**
 * @internal
 */
export declare const WorkspaceContext: import("react").Context<Workspace | null>;
/** @internal */
export declare const WorkspacesContext: import("react").Context<WorkspacesContextValue | null>;
/**
 * @internal
 */
export declare const zIndexContextDefaults: ZIndexContextValue;
/**
 * TODO: Rename to `ZOffsetsContext`
 *
 * @internal
 */
export declare const ZIndexContext: import("react").Context<ZIndexContextValue>;
export type { AnnotationEntry, AssetLimitUpsellContextValue, ConfigErrorValue, DialogStackContextValue, DialogStackEntry, DocumentDivergencesContextValue, DocumentFieldActionsContextValue, DocumentIdContextValue, DocumentLimitUpsellContextValue, FeedbackContextValue, FieldActionsContextValue, GetFormValueContextValue, HoveredFieldContextValue, LiveUserApplicationContextValue, LocaleContextValue, LoggedOutReason, PackageVersionInfoContextValue, PortableTextEditorElement, PortalBoundaryContextValue, ReferenceItemRef, SchedulePublishUpsellContextValue, SelectedAnnotationsContextValue, SetParseError, SingleDocReleaseContextValue, SingleDocReleaseEnabledContextValue, SingleDocReleaseUpsellContextValue, UnclaimedProjectContextValue };
//# sourceMappingURL=_singletons.d.ts.map