import type { FormSpecConfig, ResolvedConstraintConfig } from "./types.js"; /** * Resolved configuration for a specific file, with all defaults applied * and per-package overrides merged. * * @public */ export interface ResolvedFormSpecConfig { /** Resolved extensions (empty array if none configured). */ readonly extensions: readonly import("@formspec/core").ExtensionDefinition[]; /** Resolved constraint config with all defaults filled in. */ readonly constraints: ResolvedConstraintConfig; /** Resolved metadata policy, or undefined for FormSpec built-in. */ readonly metadata: import("@formspec/core").MetadataPolicyInput | undefined; /** Resolved vendor prefix. */ readonly vendorPrefix: string; /** Resolved enum serialization mode. */ readonly enumSerialization: "enum" | "oneOf" | "smart-size"; } /** * Resolves the effective config for a specific file by matching against * the `packages` glob map and merging with root-level settings. * * Package overrides are evaluated in declaration order — the first matching * pattern wins. Declare more specific patterns before broader ones. * * @param config - The root FormSpecConfig * @param filePath - Absolute or relative path to the file being processed * @param configDir - Directory containing the config file (for relative path resolution) * @returns Fully resolved config with defaults applied * * @public */ export declare function resolveConfigForFile(config: FormSpecConfig, filePath: string, configDir: string): ResolvedFormSpecConfig; //# sourceMappingURL=resolve.d.ts.map