import { W as WebsitePhotos } from '../website-photos-_n2g24IM.js';

/**
 * Helper functions for extracting photo URLs from photo associations
 */

interface PhotoAttachment {
    id: number;
    photo: {
        id: number;
        title: string;
        thumbnail_url?: string;
        medium_url?: string;
        large_url?: string;
        original_url?: string;
    };
    featured: boolean;
    sort_order: number;
}
/**
 * Get the best available photo URL from a photos array
 * Priority: featured photo > first photo > fallback
 */
declare function getPhotoUrl(photos?: PhotoAttachment[]): string | null;
/**
 * Get avatar URL for team members or authors
 */
declare function getAvatarUrl(photos?: PhotoAttachment[], fallbackId?: number | string, name?: string): string;
/**
 * Get featured image URL for blog posts
 */
declare function getFeaturedImageUrl(photos?: PhotoAttachment[]): string | null;
/**
 * Get logo URL from website_photos API (which aggregates from account_photos)
 *
 * The website_photos API endpoint returns logos from account_photos with photo_type: 'logo',
 * with industry fallback. This is the primary and only source for logos.
 *
 * Returns undefined if no logo is available (for PhotoWithFallback gradient fallback)
 */
declare function getLogoUrl(websitePhotos?: WebsitePhotos | null): string | undefined;

export { type PhotoAttachment, getAvatarUrl, getFeaturedImageUrl, getLogoUrl, getPhotoUrl };
