import { registerI18nRoot, listLocales, loadStrings, interpolate } from "./i18n/registry.js"; import type { StringsTable } from "./i18n/registry.js"; export { registerI18nRoot, listLocales, loadStrings, interpolate }; export type { StringsTable }; export interface Choice { label: string; value: T; } export interface PromptLocaleOptions { defaultLocale?: string; } export interface PromptScopeOptions { strings?: StringsTable; } export interface ScopeResult { scope: "local" | "global"; path: string; } export interface PromptYesNoOptions { defaultNo?: boolean; strings?: StringsTable; } export interface WriteConfigOptions { /** Overwrite without prompting. */ force?: boolean; /** Locale for the overwrite prompt. Resolves CORE strings by locale. Falls back to en-US. */ locale?: string; /** Injectable confirm fn (for tests). Defaults to promptYesNo when stdin is a TTY. */ confirmOverwrite?: () => Promise; } export interface MultiSelectOptions { strings?: StringsTable; } export interface PromptPickOptions { defaultIndex?: number; allowSkip?: boolean; strings?: StringsTable; } export interface AttributionConfig { enabled?: boolean; autonomousOnly?: boolean; includeAgentName?: boolean; } export interface ConfigWithAttribution { attribution?: AttributionConfig; } export interface GetAttributionParams { locale: string; tool: string; agent: string; autonomous: boolean; config: ConfigWithAttribution | undefined | null; } export interface AttributionResult { commentPrefix: string | null; descriptionFooter: string | null; } export interface ValidationResult { ok: boolean; errors?: unknown[] | null; } export interface ProbeMCPParams { tool: string; probeCommand: () => Promise; } export interface ProbeMCPResult { mcpAvailable: boolean; result?: unknown; unauthenticated?: boolean; error?: string; } export declare function promptLocale(adapterPkg?: string, { defaultLocale }?: PromptLocaleOptions): Promise; export declare function resolveGlobalConfigDir(): string; export declare function promptScope(toolName: string, { strings }?: PromptScopeOptions): Promise; export declare function promptYesNo(question: string, { defaultNo: _defaultNo, strings }?: PromptYesNoOptions): Promise; export declare function multiSelect(label: string, choices: Choice[], { strings }?: MultiSelectOptions): Promise; export declare function promptPick(label: string, choices: Choice[], { defaultIndex, allowSkip, strings }?: PromptPickOptions): Promise; export declare function aliasOf(name: unknown): string; export declare function writeConfig(targetPath: string, data: unknown, opts?: WriteConfigOptions): Promise; export declare function validateConfig(data: unknown, schema: unknown): Promise; export declare function probeMCP({ tool: _tool, probeCommand, }: ProbeMCPParams): Promise; export declare function printInstructions(lines: string[]): void; export declare function readJsonIfExists(p: string): Promise; export declare function getAttribution({ locale, tool, agent, autonomous, config, }: GetAttributionParams): Promise; //# sourceMappingURL=init-lib.d.ts.map