import type { Element } from 'html-react-parser';
import { IBlock } from '../components';
import { IBlockAttributes } from './types';
/**
* The interface for components rendered by {@link AudioBlock}
*/
export interface AudioBlockProps extends IBlockAttributes {
/**
* The audio source URL.
*/
src: string;
/**
* Whether the audio should be autoplayable
*/
autoplay?: boolean;
/**
* Audio caption
*/
caption?: string;
/**
* Whether the audio should be played in a loop
*/
loop?: boolean;
/**
* Whether to preload the audio or not
*/
preload?: string;
}
/**
* The interface for the {@link AudioBlock} component.
*/
export interface IAudioBlock extends IBlock {
}
/**
* The AudioBlock components implements block parsing for the Audio block.
*
* This component must be used within a {@link BlocksRenderer} component.
*
* ```tsx
*
*
*
* ```
*
* @category Blocks
*
* @param props Component properties
*
*/
export declare function AudioBlock({ domNode: node, children, component: Component, style, }: IAudioBlock): import("react/jsx-runtime").JSX.Element;
/**
* @internal
*/
export declare namespace AudioBlock {
const defaultProps: {
test: (node: Element) => boolean;
};
}