import { A11yOptions, A11yResult, AnalysisApiResponse, ArtFileInfo, ArtMetadata, ArtVariant, CaptureConfig, CiConfig, ComparisonConfig, CsfOutput, MuseaOptions, MuseaTheme, MuseaThemeColors, MuseaVrtRunner$1 as MuseaVrtRunner, PaletteApiResponse, ViewportConfig, VrtOptions, VrtResult, VrtSummary, generateVrtJsonReport$1 as generateVrtJsonReport, generateVrtReport$1 as generateVrtReport } from "./vrt-Vb4aqPZE.js";
import { A11ySummary, MuseaA11yRunner$1 as MuseaA11yRunner } from "./a11y-Bvx5TJb8.js";
import { AutogenOptions, AutogenOutput, GeneratedVariant, PropDefinition, generateArtFile$1 as generateArtFile, writeArtFile$1 as writeArtFile } from "./autogen-D3Zjc3zI.js";
import { Plugin } from "vite";

//#region src/style-dictionary.d.ts
/**
* Style Dictionary integration for Musea.
* Generates design token documentation from Style Dictionary format.
*/
/**
* Design token value.
*/
/**
 * Style Dictionary integration for Musea.
 * Generates design token documentation from Style Dictionary format.
 */
/**
 * Design token value.
 */
interface DesignToken {
  value: string | number;
  type?: string;
  description?: string;
  attributes?: Record<string, unknown>;
  $tier?: "primitive" | "semantic";
  $reference?: string;
  $resolvedValue?: string | number;
}
/**
 * Token category (e.g., colors, spacing, typography).
 */
interface TokenCategory {
  name: string;
  tokens: Record<string, DesignToken>;
  subcategories?: TokenCategory[];
}
/**
 * Style Dictionary output format.
 */
interface StyleDictionaryOutput {
  categories: TokenCategory[];
  metadata: {
    name: string;
    version?: string;
    generatedAt: string;
  };
}
/**
 * Configuration for Style Dictionary integration.
 */
interface StyleDictionaryConfig {
  /**
   * Path to tokens JSON/JS file or directory.
   */
  tokensPath: string;
  /**
   * Output format for documentation.
   * @default 'html'
   */
  outputFormat?: "html" | "json" | "markdown";
  /**
   * Output directory for generated documentation.
   * @default '.vize/tokens'
   */
  outputDir?: string;
  /**
   * Custom token transformations.
   */
  transforms?: TokenTransform[];
}
/**
 * Token transformation function.
 */
type TokenTransform = (token: DesignToken, path: string[]) => DesignToken;
/**
 * Parse Style Dictionary tokens file.
 */
declare function parseTokens(tokensPath: string): Promise<TokenCategory[]>;
/**
 * Flatten nested categories into a flat map keyed by dot-path.
 */
declare function buildTokenMap(categories: TokenCategory[], prefix?: string[]): Record<string, DesignToken>;
/**
 * Resolve references in categories, setting $tier, $reference, and $resolvedValue.
 */
declare function resolveReferences(categories: TokenCategory[], tokenMap: Record<string, DesignToken>): void;
/**
 * Read raw JSON token file.
 */

/**
 * Generate HTML documentation for tokens.
 */
declare function generateTokensHtml(categories: TokenCategory[]): string;
/**
 * Generate Markdown documentation for tokens.
 */
declare function generateTokensMarkdown(categories: TokenCategory[]): string;
/**
 * Style Dictionary plugin for Musea.
 */
declare function processStyleDictionary(config: StyleDictionaryConfig): Promise<StyleDictionaryOutput>;
interface TokenUsageMatch {
  line: number;
  lineContent: string;
  property: string;
}
interface TokenUsageEntry {
  artPath: string;
  artTitle: string;
  artCategory?: string;
  matches: TokenUsageMatch[];
}
type TokenUsageMap = Record<string, TokenUsageEntry[]>;
/**
 * Normalize a token value for comparison.
 * - Lowercase, trim
 * - Leading-zero: `.5rem` → `0.5rem`
 * - Short hex: `#fff` → `#ffffff`
 */

/**
 * Scan art file sources for token value matches in `<style>` blocks.
 */
declare function scanTokenUsage(artFiles: Map<string, {
  path: string;
  metadata: {
    title: string;
    category?: string;
  };
}>, tokenMap: Record<string, DesignToken>): TokenUsageMap; //#endregion
//#region src/index.d.ts

//# sourceMappingURL=style-dictionary.d.ts.map
/**
 * Create Musea Vite plugin.
 */
declare function musea(options?: MuseaOptions): Plugin[];

//#endregion
export { A11yOptions, A11yResult, A11ySummary, AnalysisApiResponse, ArtFileInfo, ArtMetadata, ArtVariant, AutogenOptions, AutogenOutput, CaptureConfig, CiConfig, ComparisonConfig, CsfOutput, DesignToken, GeneratedVariant, MuseaA11yRunner, MuseaOptions, MuseaTheme, MuseaThemeColors, MuseaVrtRunner, PaletteApiResponse, PropDefinition, StyleDictionaryConfig, StyleDictionaryOutput, TokenCategory, TokenUsageMap, ViewportConfig, VrtOptions, VrtResult, VrtSummary, buildTokenMap, musea as default, generateArtFile, generateTokensHtml, generateTokensMarkdown, generateVrtJsonReport, generateVrtReport, musea, parseTokens, processStyleDictionary, resolveReferences, scanTokenUsage, writeArtFile };
//# sourceMappingURL=index.d.ts.map