import type { RenovateConfig } from '../types'; export type Preset = RenovateConfig & Record; export type PresetConfig = { repo: string; presetPath?: string | undefined; presetName?: string; tag?: string | undefined; }; export interface PresetApi { getPreset(config: PresetConfig): Promise | Preset | null | undefined; } export interface ParsedPreset { presetSource: string; repo: string; presetPath?: string | undefined; presetName: string; tag?: string | undefined; params?: string[] | undefined; } export type PresetFetcher = (repo: string, fileName: string, endpoint: string, tag?: string | undefined) => Promise; export type FetchPresetConfig = { repo: string; filePreset: string; presetPath?: string | undefined; endpoint: string; tag?: string | undefined; fetch: PresetFetcher; };