/** * 토큰 객체를 CSS 변수 선언 형태로 변환합니다. * 중첩된 객체의 경로를 CSS 변수명으로 사용하여 평면화된 변수 맵을 생성합니다. * * @param tokens - 변환할 토큰 객체 (1-depth 또는 중첩 구조 모두 지원) * @param prefix - CSS 변수명에 사용될 접두사 * @returns CSS 변수명과 해당 값을 매핑한 객체 * * @example * const result = populateCSSVariables( * { primary: { main: "#000000" } }, * "stack-color-semantic" * ); * // 결과: { "--stack-color-semantic-primary-main": "#000000" } */ type TokenObject = { [key: string]: string | TokenObject; }; declare const populateCSSVariables: (tokens: TokenObject, prefix: string) => Record; export { populateCSSVariables };