import { BaseCompiler } from '../core/base-compiler'; import { FieldCompilerConfig } from '../core/config'; /** * Every directory a pattern name may be answered from, best answer first: * the app's own compiled patterns, then the installed package, then a copy of * the package's assets that a previous build already landed in the output. * * Authored ahead of shipped on purpose — the same precedence the editor's * `resolveFieldPatternRules` uses, so a name resolves to the same rule in the * Canvas and in the built app. */ export declare function patternLookupDirs(baseDirs: string[], packageRoot?: string): string[]; export declare class FieldCompiler extends BaseCompiler { private watcher; private readonly lookupDirs; constructor(config: FieldCompilerConfig); compile(): Promise; watch(): Promise; private findYAMLFiles; private loadOptions; /** * Reads compiled `patterns/*.json` out of every tier `patternLookupDirs` * names. First tier to answer a name wins, so an app's own pattern shadows a * shipped one of the same name and never the other way round. * * A shipped name has to resolve here or nowhere: a Field inlines its rules at * compile time, so a name this pass drops leaves the built Field declaring no * shape at all, and the form validates nothing with no runtime symptom. */ private loadPatterns; private processYAMLFiles; private processField; private isYAMLFile; } //# sourceMappingURL=field-compiler.d.ts.map