import { Color, ErrorOptions } from './types'; type TerminalTheme = { primary: Color; shade1?: Color; shade2?: Color; bgColor?: Color; fontColor?: Color; pageWidth?: number; debugModeColor?: Color; }; type TerminalConfig = { noColor: boolean; theme: TerminalTheme; }; type TerminalConfigRequired = { noColor: boolean; theme: Required; }; export type TopkatUtilConfig = { env: string; isProd: boolean; nbOfLogsToKeep: number; customTypes: object; preprocessLog?: (log: string) => any; onError?: (msg: string, extraInfos: ErrorOptions) => any; terminal: TerminalConfig; }; /** Allow dynamic changing of config */ export declare function configFn(): Required; export declare function registerConfig(customConfig: RecursivePartial): void; type RecursivePartial = { [P in keyof T]?: T[P] extends (infer U)[] ? RecursivePartial[] : T[P] extends object ? RecursivePartial : T[P]; }; export {};