import * as _pandacss_compiler_shared from '@pandacss/compiler-shared'; import { BaseDriver, Diagnostic, CodegenOverlay, DesignSystemWatchTarget, DesignSystemWatchFileKind, SourceChange, DiffConfigResult, CodegenOptions, CompileOptions, CompileOutput, WriteCssOptions, WriteCssResult, WriteLayerCssOptions, WriteSplitCssOptions, WriteSplitCssResult, SerializedConfig, CompilerOptions, ConfigSnapshot } from '@pandacss/compiler-shared'; export * from '@pandacss/compiler-shared'; export { NativeSourceTransformer, NativeTransformSourceInput, TransformSourceOptions, TransformSourceResult, createUsageReport } from '@pandacss/compiler-shared'; import { C as CompileInput, T as TraceOptions, N as NativeCompiler } from './types-BbuLq_c5.js'; export { n as CompilerConstructor, i as ExtractDebugResult, E as ExtractedCallsResult, h as ExtractedJsxResult, j as ExtractorSession, k as ExtractorSessionConstructor, b as ImportKind, c as ImportRecord, d as ImportScanResult, a as ImportSpecifier, I as ImportSpecifierKind, J as JsxFramework, g as MatchedImport, M as Matcher, e as Matchers, o as NativeBinding, l as NativeCompilerOptions, m as RawCompiler, R as RawSourceTransformBinding, f as TokenDictionary } from './types-BbuLq_c5.js'; import * as _pandacss_config from '@pandacss/config'; import { LoadConfigResult } from '@pandacss/config'; interface NodeDriverOptions { cwd: string; /** Explicit config file (relative to `cwd`); otherwise discovered upward. */ configPath?: string; /** Override the config's `include` globs (e.g. CLI `--include`). Empty/omitted keeps the config value. */ include?: string[]; /** Record which config or preset defined each entry, for `spec()` provenance. */ trackSources?: boolean; } interface WriteDesignSystemLibOptions { outdir?: string; files?: string[]; panda?: string; minify?: boolean; maxWarnings?: number | string; /** An already-written spec file; recorded in lib.json relative to the manifest. */ spec?: string; } interface WriteDesignSystemLibResult { manifestPath: string; buildInfoPath: string; presetPath: string; exportsChanged: boolean; parsedFileCount: number; diagnostics: Diagnostic[]; } /** * {@link Driver} backed by the native compiler (`OsFileSystem`). Loads the * config from disk; `scan` / `codegen` run through the Rust fs engine. */ declare function createNodeDriver(options: NodeDriverOptions): Promise; declare class NodeDriver extends BaseDriver { #private; constructor(options: NodeDriverOptions, loaded: LoadConfigResult); get designSystemDiagnostics(): Diagnostic[]; protected configSources(): _pandacss_config.ConfigSources | undefined; protected codegenOverlay(): CodegenOverlay | undefined; get config(): _pandacss_compiler_shared.SerializedConfig; get configPath(): string; get configDependencies(): string[]; designSystemWatchTargets(): DesignSystemWatchTarget[]; isDesignSystemFile(file: string): DesignSystemWatchFileKind | false; private buildDesignSystemFileKinds; syncDesignSystemFileChange(change: SourceChange): Promise; syncDesignSystemSources(): boolean[]; reload(): Promise; /** Re-hydrate when treeshake import set changes. */ syncDesignSystemTreeShake(): boolean; protected prepareCssOutput(): void; applyChange(change: SourceChange): boolean; private applySourceChange; /** Known files always refresh; unknown project paths must match the source globs. */ private admitSourceChange; private recordSourceChange; getOutdir(outdir?: string): string; writeDesignSystemLib(options?: WriteDesignSystemLibOptions): Promise; codegen(options?: CodegenOptions): string[]; cssgen(options?: CompileOptions): CompileOutput; writeCss(options: WriteCssOptions): WriteCssResult; writeLayerCss(options: WriteLayerCssOptions): WriteCssResult; writeSplitCss(options?: WriteSplitCssOptions): WriteSplitCssResult; private runCssgenDone; private codegenWithPrepareHooks; isConfigFile(file: string): boolean; private buildConfigFilePaths; private parseDesignSystemLib; private compileDesignSystemPreset; private writeDesignSystemLibArtifacts; } /** * One-shot stateless compile: build a compiler from `config`, parse every * input file, and emit the stylesheet. Callback-bearing configs * (`utilities.*.transform`, `patterns.*.transform`) are *not* supported here - * use [`createCompiler`] + `options.callbacks` for those. */ declare function compile(input?: CompileInput): CompileOutput; declare function startTracing(options?: TraceOptions): boolean; declare function flushTracing(): void; /** Renders `timings.json` from spans collected so far. Call before `shutdownTracing`. */ declare function takeTimingsJson(): string | undefined; declare function shutdownTracing(): boolean; declare function createCompiler(config: SerializedConfig, options?: CompilerOptions): NativeCompiler; /** * Like {@link createCompiler}, but takes a snapshot; its callbacks merge under * any in `options.callbacks`. */ declare function createCompilerFromSnapshot(snapshot: ConfigSnapshot, options?: CompilerOptions): NativeCompiler; declare function getBindingInfo(): { native: boolean; }; export { CompileInput, NativeCompiler, NodeDriver, type NodeDriverOptions, TraceOptions, type WriteDesignSystemLibOptions, type WriteDesignSystemLibResult, compile, createCompiler, createCompilerFromSnapshot, createNodeDriver, flushTracing, getBindingInfo, shutdownTracing, startTracing, takeTimingsJson };