import { type ProjectKind } from '../../commands/init/project-kind.js'; import { type Config } from '../../utils/config.js'; import { type ProjectInfo } from '../../utils/get-project-info.js'; import { z } from 'zod'; export declare const SCHEMA_URL = "https://zardui.com/schema.json"; export declare const configSchema: z.ZodObject<{ $schema: z.ZodString; style: z.ZodEnum<{ css: "css"; }>; icons: z.ZodString; rtl: z.ZodBoolean; projectType: z.ZodEnum<{ angular: "angular"; "angular-library": "angular-library"; nx: "nx"; "nx-library": "nx-library"; analog: "analog"; }>; appConfigFile: z.ZodString; packageManager: z.ZodEnum<{ npm: "npm"; yarn: "yarn"; pnpm: "pnpm"; bun: "bun"; }>; tailwind: z.ZodObject<{ css: z.ZodString; baseColor: z.ZodString; }, z.core.$strip>; baseUrl: z.ZodString; aliases: z.ZodObject<{ components: z.ZodString; utils: z.ZodString; core: z.ZodString; services: z.ZodString; }, z.core.$strip>; }, z.core.$strip>; /** As respostas do wizard, antes de virarem um `components.json`. */ export interface InitAnswers { kind: ProjectKind; /** Root of the chosen project, relative to the workspace; empty for a single app. */ projectRoot: string; appConfig: string; theme: string; globalCss: string; componentsAlias: string; utilsAlias: string; } /** * The paths suggested for the type the user chose. * * They come from the project declared in the workspace whenever there is one — * the build target's `styles` is where the global CSS actually lives, and * guessing it was what made init suggest paths that did not exist in monorepo * layouts. */ export declare function defaultAnswers(projectInfo: ProjectInfo, kind?: ProjectKind, projectRoot?: string): InitAnswers; /** * Where the components are written, derived from `app.config.ts`. * * Hardcoding `src/app` broke every layout that was not a single app at the root: * in a workspace the app.config lives in `apps//src/app`, and the components * ended up in a root `src/app` that belongs to no project. The directory holding * app.config is exactly the root of the app's code. * * Separators are normalized before `dirname`, not after: on POSIX `path.dirname` * does not treat `\` as a separator, so a Windows-style path collapsed to `.` * and silently fell back to `src/app`. */ export declare function deriveBaseUrl(appConfigFile: string): string; export declare function buildConfig(answers: InitAnswers, packageManager: 'npm' | 'yarn' | 'pnpm' | 'bun'): Config; /** * State of the global CSS file the user pointed at. * * init overwrites that file with the theme tokens, so the wizard has to know, * before going on, whether it exists and whether there is content to lose. */ export type CssFileState = 'missing' | 'empty' | 'has-content'; export declare function inspectCssFile(cwd: string, relativePath: string): Promise; //# sourceMappingURL=config-prompter.d.ts.map