import type { KsCloudConfig, PathAbsolute, PathRelative } from '@knapsack/types'; import type { ConvertTokenDataToFilesArgs } from '@knapsack/design-token-utils'; import { z } from 'zod'; import { type Renderer } from '../domains/patterns/renderers/renderer-base'; import type { KsServerPlugin } from './plugins'; export type { TemplateRendererMeta } from '@knapsack/types'; export type KnapsackConfig = { /** Output of knapsack build directory */ dist: PathType; /** Knapsack data directory */ data: PathType; /** Hosted by knapsack server. Place compiled Design System css and js as well as images and other assets needed by knapsack */ public: PathType; templateRenderers: Renderer[]; designTokens?: { /** path to `knapsack.design-tokens.json` */ srcFilePath?: PathType; /** * Use this directory instead of "`config.dist`/tokens" * @see {KnapsackConfig['dist']} */ distDir?: PathType; targets?: ConvertTokenDataToFilesArgs['targets']; }; plugins?: KsServerPlugin[]; version?: string; cloud?: KsCloudConfig; devServer?: { https?: boolean; /** * If present (and if `devServer.https` is `true`), this will be used instead of auto-generating an SSL cert. If absent, an SSL cert will be auto-generated. */ ssl?: { /** * This is a file path and NOT the contents of the file */ cert: PathType; /** * This is a file path and NOT the contents of the file */ key: PathType; }; port?: number; }; }; export declare const KnapsackConfigSchema: z.ZodObject<{ public: z.ZodCustom; dist: z.ZodCustom; data: z.ZodCustom; version: z.ZodOptional; designTokens: z.ZodOptional>; distDir: z.ZodOptional>; targets: z.ZodOptional boolean, (token: import("@knapsack/types").TokenData) => boolean>>; }, z.core.$strict>>; js: z.ZodOptional boolean, (token: import("@knapsack/types").TokenData) => boolean>>; }, z.core.$strict>>; android: z.ZodOptional boolean, (token: import("@knapsack/types").TokenData) => boolean>>; }, z.core.$strict>>; ios: z.ZodOptional boolean, (token: import("@knapsack/types").TokenData) => boolean>>; }, z.core.$strict>>; }, z.core.$strict>>; }, z.core.$strict>>; cloud: z.ZodOptional>; repoName: z.ZodOptional; repoOwner: z.ZodOptional; }, z.core.$strict>>; devServer: z.ZodOptional; ssl: z.ZodOptional; key: z.ZodCustom; }, z.core.$strict>>; port: z.ZodOptional; }, z.core.$strict>>; plugins: z.ZodOptional, KsServerPlugin>>>; templateRenderers: z.ZodArray, Renderer>>; }, z.core.$strict>; //# sourceMappingURL=knapsack-config.d.ts.map