import { Tree } from '@nx/devkit';
import { StorybookConfigureSchema } from '../schema';
/**
 * When adding storybook we need to inform ESLint
 * of the additional tsconfig.json file which will be the only tsconfig
 * which includes *.stories files.
 *
 * For legacy `.eslintrc.json` workspaces this is done by appending to
 * `parserOptions.project`. TS-solution workspaces (as scaffolded by
 * `create-nx-workspace`) default to flat config, which has no equivalent
 * `.eslintrc.json` file to patch at all - use `@nx/eslint/internal`'s flat
 * config helpers instead (mirrors `packages/svelte/src/generators/utils/lint.ts`).
 *
 * Projects with no lint config at all (e.g. `linter: 'none'`, or unit-test
 * fixtures that never ran `addLinting`) get neither branch - matches the
 * pre-existing legacy-only guard's behavior of silently no-op'ing.
 */
export declare function updateLintConfig(tree: Tree, schema: StorybookConfigureSchema): void;
