import { type Config, type SingleWorkspace, type StudioTheme, type WorkspaceOptions } from 'sanity';
export declare type WithTheme = {
    theme: StudioTheme;
};
export declare type SingleWorkspaceWithTheme = Omit<SingleWorkspace, 'theme'> & WithTheme;
export declare type WorkspaceOptionsWithTheme = Omit<WorkspaceOptions, 'theme'> & WithTheme;
export declare type ConfigWithTheme = SingleWorkspaceWithTheme | WorkspaceOptionsWithTheme[];
export declare function isWorkspaces(config: Config): config is WorkspaceOptions[];
export declare function isWorkspaceWithTheme(workspace: SingleWorkspace | WorkspaceOptions): workspace is SingleWorkspaceWithTheme | WorkspaceOptionsWithTheme;
export declare function useTheme(config: Config): StudioTheme;
export declare type MetaThemeColors = {
    themeColorLight: string;
    themeColorDark: string;
};
export declare const useBackgroundColorsFromTheme: (theme: StudioTheme) => MetaThemeColors;
export declare const useTextFontFamilyFromTheme: (theme: StudioTheme) => string;
/**
 * Parses the next route to determine the what the base path for Sanity Studio should be
 */
export declare function useBasePath(): string;
export interface WorkspaceWithBasePath extends Omit<WorkspaceOptions, 'basePath'> {
    basePath: string;
}
export declare type SingleWorkspaceWithBasePath = Omit<SingleWorkspace, 'basePath'> & {
    basePath: string;
};
export declare type ConfigWithBasePath = SingleWorkspaceWithBasePath | WorkspaceOptions[];
/**
 * Apply the base path from next to the config, prefixing any defined base path
 */
export declare function useConfigWithBasePath(config: Config): ConfigWithBasePath;
