interface MelonUIConfig { // Timezone configurations systemTimezone?: string | null localTimezone?: string | null // Resource fetcher function resourceFetcher?: (options: any) => Promise // Default API endpoints for document operations defaultDocGetUrl?: string defaultDocInsertUrl?: string defaultDocUpdateUrl?: string defaultDocDeleteUrl?: string defaultRunDocMethodUrl?: string // Default API endpoints for list operations defaultListUrl?: string // Error handling fallbackErrorHandler?: (error: any) => void } let config: MelonUIConfig = {} export function setConfig( key: K, value: MelonUIConfig[K], ): void { config[key] = value } export function getConfig( key: K, ): MelonUIConfig[K] | null { return config[key] ?? null }