/** * Configuration types for the GT Babel plugin */ import type { GTConfig as SharedGTConfig } from 'generaltranslation/types'; export type LogLevel = 'silent' | 'error' | 'warn' | 'info' | 'debug'; /** A complete or partial gt.config.json accepted by compiler integrations. */ export type GTConfig = Partial; /** * Plugin configuration options (from babel config) */ export interface PluginConfig { /** Log level for the plugin */ logLevel?: LogLevel; /** GT Configuration object — pass the parsed gt.config.json to sync settings */ gtConfig?: GTConfig; /** Enable compile-time hash generation (default: true) */ compileTimeHash?: boolean; /** Disable dynamic content validation checks */ disableBuildChecks?: boolean; /** Enable macro transform (t`...`, t(`...`), t("a" + b)) */ enableMacroTransform?: boolean; /** Name of the string translation macro function */ stringTranslationMacro?: string; /** Enable Auto Jsx Injection (e.g.
Hello
->
Hello
) */ enableAutoJsxInjection?: boolean; /** Package source for components inserted by Auto JSX Injection */ autoJsxImportSource?: string; /** Automatically treat interpolated/concatenated values as derive() calls */ autoderive?: boolean | { jsx?: boolean; strings?: boolean; }; /** Emit compiler-injected gt-react imports from gt-react/browser */ legacyGtReactImportSource?: boolean; /** Debug: write a hash → jsxChildren manifest file on build */ _debugHashManifest?: boolean; /** Dev hot reload: inject runtime translate calls and enable Suspense-based */ devHotReload?: boolean | { strings?: boolean; jsx?: boolean; }; } /** * Internal plugin settings (processed config) */ export interface PluginSettings { logLevel: LogLevel; compileTimeHash: boolean; disableBuildChecks: boolean; filename?: string; enableMacroTransform: boolean; stringTranslationMacro: string; enableTaggedTemplate: boolean; enableTemplateLiteralArg: boolean; enableConcatenationArg: boolean; enableMacroImportInjection: boolean; /** Enable Auto Jsx Injection (e.g.
Hello
->
Hello
) */ enableAutoJsxInjection: boolean; /** Package source for components inserted by Auto JSX Injection */ autoJsxImportSource?: string; /** Automatically treat interpolated/concatenated values as derive() calls */ autoderive: { jsx: boolean; strings: boolean; }; /** Emit compiler-injected gt-react imports from gt-react/browser */ legacyGtReactImportSource: boolean; /** Debug: write a hash → jsxChildren manifest file on build */ _debugHashManifest: boolean; /** Dev hot reload: inject runtime translate calls and enable Suspense-based */ devHotReload: { strings: boolean; jsx: boolean; }; } /** * Resolves the autoderive config value into separate jsx and strings flags. * - `true` enables both (backward compatible) * - `false` disables both (backward compatible) * - `{ jsx?: boolean; strings?: boolean }` enables selectively (missing keys default to false) */ export declare function resolveAutoderive(value: boolean | { jsx?: boolean; strings?: boolean; } | undefined): { jsx: boolean; strings: boolean; }; /** * Resolves the devHotReload config value into separate strings and jsx flags. * - `true` enables strings only (JSX is handled at runtime via Suspense, no compiler injection needed) * - `false` disables both * - `{ strings?: boolean; jsx?: boolean }` enables selectively (missing keys default to false) */ export declare function resolveDevHotReload(value: boolean | { strings?: boolean; jsx?: boolean; } | undefined): { strings: boolean; jsx: boolean; }; //# sourceMappingURL=config.d.ts.map