interface CompilerConfig { maxIterations: number; maxOutputRules: number; maxNestingDepth: number; maxInputSize: number; timeout: number; strictMode: boolean; minify: boolean; preserveBangComments: boolean; } interface SourceLocation { line: number; column: number; offset: number; } interface CompileError { type: "error"; code: ErrorCode; message: string; source?: string; start?: SourceLocation; end?: SourceLocation; } interface CompileWarning { type: "warning"; code: string; message: string; source?: string; start?: SourceLocation; end?: SourceLocation; } interface CompileResult { css: string; errors: CompileError[]; warnings: CompileWarning[]; stats: { iterations: number; rules: number; duration: number; inputSize: number; outputSize: number; }; } declare enum ErrorCode { SYNTAX_ERROR = "SYNTAX_ERROR", UNEXPECTED_TOKEN = "UNEXPECTED_TOKEN", UNCLOSED_BLOCK = "UNCLOSED_BLOCK", UNCLOSED_STRING = "UNCLOSED_STRING", UNDEFINED_VARIABLE = "UNDEFINED_VARIABLE", INVALID_VARIABLE_NAME = "INVALID_VARIABLE_NAME", UNDEFINED_FUNCTION = "UNDEFINED_FUNCTION", UNDEFINED_MIXIN = "UNDEFINED_MIXIN", WRONG_ARG_COUNT = "WRONG_ARG_COUNT", MISSING_RETURN = "MISSING_RETURN", INVALID_LOOP_RANGE = "INVALID_LOOP_RANGE", MAX_ITERATIONS = "MAX_ITERATIONS", MAX_OUTPUT_RULES = "MAX_OUTPUT_RULES", MAX_NESTING_DEPTH = "MAX_NESTING_DEPTH", MAX_INPUT_SIZE = "MAX_INPUT_SIZE", TIMEOUT = "TIMEOUT", TYPE_ERROR = "TYPE_ERROR", INVALID_UNIT = "INVALID_UNIT", DIVISION_BY_ZERO = "DIVISION_BY_ZERO" } declare const defaultConfig: Readonly>; declare function compile(input: string, config?: Partial): string; declare function compileWithDetails(input: string, config?: Partial): CompileResult; declare function compileAsync(input: string, config?: Partial): Promise; declare function createCompiler(config?: Partial): { compile: (input: string) => string; compileWithDetails: (input: string) => CompileResult; compileAsync: (input: string) => Promise; reset: () => void; }; declare const version = "0.1.0"; export { type CompileError, type CompileResult, type CompileWarning, type CompilerConfig, ErrorCode, type SourceLocation, compile, compileAsync, compileWithDetails, createCompiler, defaultConfig, version };