export function readStringProperty(value: unknown, key: string): string | undefined { if (typeof value !== 'object' || value === null) return undefined const property = (value as Record)[key] return typeof property === 'string' ? property : undefined }