import type { ButtonStyle } from '../models/CardEmbedMetadata'; import { FC, ReactNode } from 'react'; import { ImageStyle, StyleProp, TextStyle, ViewStyle } from 'react-native'; export type CardCoverProps = { /** * The callback for when the cover is clicked. */ onClick: () => void; /** * Whether the cover is loading. */ isLoading: boolean; /** * Whether the cover is in an error state. */ isError?: boolean; /** * Override the default skeleton loader. */ loader?: ReactNode; /** * Override the default error display. */ errorDisplay?: ReactNode; /** * The button style returned from the embed metadata endpoint. */ metaButtonStyle?: ButtonStyle; /** * Override the button style. */ overrideButtonStyle?: StyleProp; /** * Override the button text style. */ overrideButtonTextStyle?: StyleProp; /** * Override the container style. */ containerStyle?: StyleProp; /** * Override the cover image style. */ coverImageStyle?: StyleProp; /** * Whether to hide the cover button. */ hideCoverButton?: boolean; /** * The url of the cover image. * This can be obtained by querying the embed metadata endpoint. */ imageUrl?: string; /** * The aspect ratio of the cover image. * This can be obtained by querying the embed metadata endpoint. */ imageAspectRatio?: number; }; export declare const CardCover: FC; //# sourceMappingURL=CardCover.d.ts.map