UNPKG

auto-translatr

Version:
22 lines (21 loc) 838 B
import { Either } from './utils'; import { LlmConfiguration } from './modelConfiguration'; import { Prettify } from './utils'; export type Settings = Prettify<LanguageConfig & TranslationReaderConfig & CodebaseReaderConfig & LlmConfiguration>; type LanguageConfig = { default: string; supported: string[]; }; export type TranslationReaderConfig = { output: string; }; export type CodebaseReaderConfig = { include: string[]; ignore: string[]; }; export declare const getDefaultSettings: () => Settings; export declare const readSettingsFile: () => Either<Error, Settings>; export declare const createDefaultSettingsFile: () => Promise<Either<Error, Settings>>; export declare const initializeSettings: () => Promise<Either<Error, Settings>>; export declare const loadSettings: () => Either<Error, Settings>; export {};