import React from 'react'; import { CommonProps, PickUnion, EntityStatus } from '@contentful/f36-core'; import { GeneratedIconProps } from '@contentful/f36-icon'; declare const types: { archive: string; audio: string; code: string; image: string; markup: string; pdf: string; plaintext: string; presentation: string; richtext: string; spreadsheet: string; video: string; }; declare function isAssetType(type: string): type is AssetType; type AssetType = keyof typeof types; type AssetStatus = PickUnion; interface AssetProps extends CommonProps { /** * A `src` attribute to use for image assets */ src?: string; /** * The publish status of the asset */ status?: AssetStatus; /** * The title of the asset */ title?: string; /** * The type of asset being represented */ type?: AssetType; } declare const Asset: React.ForwardRefExoticComponent>; interface AssetIconProps extends Omit { type?: AssetType; } /** * Renders only the Illustration that would represent this asset's type */ declare const AssetIcon: { ({ type, className, testId, ...otherProps }: AssetIconProps): React.JSX.Element; displayName: string; }; export { Asset, AssetIcon, type AssetIconProps, type AssetProps, type AssetStatus, type AssetType, isAssetType };