/**
* ServiceMedia - Compound component for displaying service media
* Provides components for displaying main media and cover media images
*/
import React from 'react';
import { AsChildChildren } from '@wix/headless-utils/react';
export declare const TestIds: {
readonly serviceMediaMain: "service-media-main";
readonly serviceMediaCover: "service-media-cover";
};
/**
* Props for ServiceMedia.Main component
*/
export interface MainProps {
/** Whether to render as a child component */
asChild?: boolean;
/** Custom render function when using asChild */
children?: AsChildChildren<{
media: {
image?: string;
};
}>;
/** CSS class name */
className?: string;
}
/**
* Displays the service main media image using WixMediaImage.
*
* @component
* @example
* ```tsx
* // Default usage
*
* ```
*
* @example
* ```tsx
* // asChild with primitive img element
*
*
*
* ```
*
* @example
* ```tsx
* // asChild with custom component accessing media data
*
* {React.forwardRef(({media, ...props}, ref) => (
*
* ))}
*
* ```
*/
export declare const Main: React.ForwardRefExoticComponent>;
/**
* Props for ServiceMedia.Cover component
*/
export interface CoverProps {
/** Whether to render as a child component */
asChild?: boolean;
/** Custom render function when using asChild */
children?: AsChildChildren<{
media: {
image?: string;
};
}>;
/** CSS class name */
className?: string;
}
/**
* Displays the service cover media image using WixMediaImage.
* The cover media is typically used as a hero/banner image.
*
* @component
* @example
* ```tsx
* // Default usage
*
* ```
*
* @example
* ```tsx
* // asChild as a background image container
*
*
*
* ```
*
* @example
* ```tsx
* // asChild with custom component accessing media data
*
* {React.forwardRef(({media, ...props}, ref) => (
*
* ))}
*
* ```
*/
export declare const Cover: React.ForwardRefExoticComponent>;
/**
* ServiceMedia compound component for displaying service media
*
* @example
* ```tsx
* import { Service, ServiceMedia } from '@wix/headless-bookings/react';
*
* function ServiceCard({ service }) {
* return (
*
*
*
*
* );
* }
* ```
*/
export declare const ServiceMedia: {
Main: React.ForwardRefExoticComponent>;
Cover: React.ForwardRefExoticComponent>;
};
export default ServiceMedia;