declare const CONFIG_FILENAMES: readonly ["palamedes.yaml", "palamedes.yml", "palamedes.json", "palamedes.toml", "palamedes.config.ts", "palamedes.config.js", "palamedes.config.mjs", "palamedes.config.cjs"]; type PalamedesFallbackLocales = string[] | Record; type PalamedesSourceReferenceRoot = "git" | "lingui" | "config" | (string & {}); type PalamedesPoOutputOptions = { lineBreaks?: "auto" | "off"; }; type PalamedesCatalogConfig = { path: string; format?: "po" | "fcl"; po?: PalamedesPoOutputOptions; include: string[]; exclude?: string[]; }; type PalamedesMdxConfig = { framework?: "react" | "solid"; translatableAttributes?: string[]; frontMatterFields?: string[]; transModule?: string; runtimeModule?: string; ignoreDirective?: string; keepSourceFallbacks?: boolean; }; type PalamedesSourceRuleLevel = "off" | "info" | "warning" | "error"; type PalamedesLintConfig = { rules?: { placeholderOnly?: PalamedesSourceRuleLevel; emptyComponentOnly?: PalamedesSourceRuleLevel; preferTransInJsx?: PalamedesSourceRuleLevel; }; }; type PalamedesPluginDeclaration = string | readonly [specifier: string, options: unknown]; type PalamedesConfig = { locales: string[]; sourceLocale: string; fallbackLocales?: PalamedesFallbackLocales; pseudoLocale?: string; sourceReferenceRoot?: PalamedesSourceReferenceRoot; referenceScopes?: boolean; mdx?: PalamedesMdxConfig; lint?: PalamedesLintConfig; catalogs: PalamedesCatalogConfig[]; plugins?: PalamedesPluginDeclaration[]; }; type LoadedPalamedesConfig = { /** * Real paths whose contents contributed to this resolved configuration. * Populated by the loaders; optional for compatibility with caller-created values. */ configDependencies?: string[]; configPath: string; rootDir: string; sourceReferenceRoot: string; referenceScopes: boolean; } & Omit; type LoadPalamedesConfigOptions = { cwd?: string; configPath?: string; skipValidation?: boolean; }; declare function defineConfig(config: PalamedesConfig): PalamedesConfig; declare function loadPalamedesConfig(options?: LoadPalamedesConfigOptions): Promise; declare function loadPalamedesConfigSync(options?: LoadPalamedesConfigOptions): LoadedPalamedesConfig; declare function resolveCatalogPath(config: Pick, catalogPath: string, locale: string): string; declare function resolveConfigPattern(config: Pick, pattern: string): string; /** * Whether a source file belongs to a configured catalog. * * This is shared by the Vite and Next integrations. Dot-prefixed source path * segments intentionally match, matching Vite's historic filter behavior. */ declare function catalogMatchesSource(config: Pick, catalog: PalamedesCatalogConfig, sourcePath: string): boolean; /** Resolve a configured catalog to its locale-specific on-disk resource path. */ declare function catalogResourcePath(config: Pick, catalog: PalamedesCatalogConfig, locale: string): string; declare function expandFallbackLocales(locales: readonly string[], fallbackLocales?: PalamedesFallbackLocales): Record; export { CONFIG_FILENAMES, catalogMatchesSource, catalogResourcePath, defineConfig, expandFallbackLocales, loadPalamedesConfig, loadPalamedesConfigSync, resolveCatalogPath, resolveConfigPattern }; export type { LoadPalamedesConfigOptions, LoadedPalamedesConfig, PalamedesCatalogConfig, PalamedesConfig, PalamedesFallbackLocales, PalamedesLintConfig, PalamedesMdxConfig, PalamedesPluginDeclaration, PalamedesPoOutputOptions, PalamedesSourceReferenceRoot, PalamedesSourceRuleLevel };