import type { LayoutBlockish } from '../LayoutBlockish'; import type { TextObject } from '../TextObject'; import type { ContextBlock } from './ContextBlock'; type Image = { url: string; dimensions?: { width: number; height: number; }; }; export type PreviewBlockBase = LayoutBlockish<{ type: 'preview'; title: TextObject[]; description: TextObject[]; footer?: ContextBlock; }>; export type PreviewBlockWithThumb = PreviewBlockBase & { thumb: Image; }; export type PreviewBlockWithPreview = PreviewBlockBase & { preview: Image; externalUrl?: string; oembedUrl?: string; thumb: undefined; }; export type PreviewBlock = PreviewBlockBase | PreviewBlockWithThumb | PreviewBlockWithPreview; export declare const isPreviewBlockWithThumb: (previewBlock: PreviewBlock) => previewBlock is PreviewBlockWithThumb; export declare const isPreviewBlockWithPreview: (previewBlock: PreviewBlock) => previewBlock is PreviewBlockWithPreview; export {}; //# sourceMappingURL=PreviewBlock.d.ts.map