export type NotifyLevel = "info" | "warning" | "error"; export function notify(ctx: any, message: string, level: NotifyLevel): void { if (!ctx?.hasUI) return; ctx.ui.notify(message, level); } export function setStatus(ctx: any, key: string, value?: string | null): void { if (!ctx?.hasUI) return; ctx.ui.setStatus(key, value ?? undefined); }