/** * SCSS to JSON Parser * Converts SCSS files to structured JSON format */ import type { ParseOptions, SCSSJson } from './types.js'; export declare class SCSSParser { private options; private variables; private selectors; private mediaQueries; private comments; private sections; private currentSection; constructor(options?: ParseOptions); /** * Parse SCSS string to JSON */ parse(scssString: string): SCSSJson; /** * Extract SCSS variables */ private extractVariables; /** * Extract rules (selectors and properties) */ private extractRules; /** * Build full selector path for nested SCSS rules */ private buildFullSelector; /** * Get media query context */ private getMediaQuery; /** * Scan root for section markers and track which section each node belongs to */ private scanForSections; /** * Detect section for a specific rule (using pre-scanned section map) */ private detectSection; /** * Resolve variable value */ private resolveVariableValue; /** * Extract comments */ private extractComments; } /** * Convenience function to parse SCSS to JSON */ export declare function toJSON(scssString: string, options?: ParseOptions): SCSSJson; //# sourceMappingURL=parser.d.ts.map