import { TargetConfiguration, Tree } from '@nx/devkit';
import { CompilerOptions } from 'typescript';
import ts = require('typescript');
export declare const Constants: {
    addonDependencies: string[];
    tsConfigExclusions: string[];
    pkgJsonScripts: {
        storybook: string;
    };
    jsonIndentLevel: number;
    coreAddonPrefix: string;
    uiFrameworks7: string[];
};
export declare function storybookMajorVersion(): number | undefined;
export declare function getInstalledStorybookVersion(): string | undefined;
export declare function safeFileDelete(tree: Tree, path: string): boolean;
export type TsConfig = {
    extends: string;
    compilerOptions: CompilerOptions;
    files?: string[];
    include?: string[];
    exclude?: string[];
    references?: Array<{
        path: string;
    }>;
};
export declare function storybookConfigExistsCheck(config: string, projectName: string): void;
export declare function dedupe(arr: string[]): string[];
export declare function findStorybookAndBuildTargetsAndCompiler(targets: {
    [targetName: string]: TargetConfiguration;
}): {
    storybookBuildTarget?: string;
    storybookTarget?: string;
    ngBuildTarget?: string;
    nextBuildTarget?: string;
    viteBuildTarget?: string;
    otherBuildTarget?: string;
    compiler?: string;
};
export declare function isTheFileAStory(tree: Tree, path: string): boolean;
export declare function getTsSourceFile(host: Tree, path: string): ts.SourceFile;
export declare function pleaseUpgrade(): string;
