/**
 * Returns the base Sanity configuration directory for the current user.
 * For persistent user settings (auth tokens, preferences, etc.).
 * Respects `SANITY_INTERNAL_ENV=staging` to isolate staging instances.
 *
 * Layout: `~/.config/sanity{-staging}/`
 *
 * @returns Absolute path to the config directory
 * @internal
 */
declare function getSanityConfigDir(): string;
/**
 * Returns the base Sanity data directory for the current user.
 * For ephemeral runtime state (dev-server registries, caches, etc.).
 * Respects `SANITY_INTERNAL_ENV=staging` to isolate staging instances.
 *
 * Layout: `~/.sanity{-staging}/`
 *
 * @returns Absolute path to the data directory
 * @internal
 */
declare function getSanityDataDir(): string;
/**
 * Gets an environment variable with the appropriate Sanity prefix based on whether it's an app or studio.
 *
 * @param suffix - The suffix for the environment variable (e.g., 'SERVER_HOSTNAME')
 * @param isApp - Whether to use the app prefix (SANITY_APP_) or studio prefix (SANITY_STUDIO_)
 * @returns The value of the environment variable, or undefined if not set
 *
 * @example
 * ```ts
 * // For studio: SANITY_STUDIO_SERVER_HOSTNAME
 * const studioHostname = getSanityEnvVar('SERVER_HOSTNAME', false)
 *
 * // For app: SANITY_APP_SERVER_HOSTNAME
 * const appHostname = getSanityEnvVar('SERVER_HOSTNAME', true)
 * ```
 *
 * @internal
 */
declare function getSanityEnvVar(suffix: string, isApp: boolean): string | undefined;
/**
 * @internal
 * @returns The Sanity URL for the given path, using the correct domain based on the environment
 */
declare function getSanityUrl(path?: string): string;
/**
 * @internal
 */
declare function getWorkspace<T extends {
  name: string;
}>(workspaces: T[], workspaceName?: string): T;
export { getSanityDataDir as a, getSanityConfigDir as i, getSanityUrl as n, getSanityEnvVar as r, getWorkspace as t };
//# sourceMappingURL=getWorkspace-CU32E6Uo.d.ts.map