UNPKG

@bonniernews/abbe-api-utils

Version:

Utilities for converting to Abbe article format

14 lines (13 loc) 835 B
import { Block, BlockStyle, CreateImageFnParams, CreateEmbedFnParams } from "./types/types"; export declare const createTitleBlock: (text: string) => Block; export declare const createPreambleBlock: (text: string) => Block; export declare const createHeadlineBlock: (text: string) => Block; export declare const createTextBlock: (text: string) => Block; export declare const createStyledText: (text: string, styles: BlockStyle[], nextEntityMapIndex: number) => { block: Block; entityMap: any; }; export declare const createImage: (image: CreateImageFnParams) => Block; export declare const createEmbed: ({ embedUuid, externalId, }: CreateEmbedFnParams) => Block; export declare const createImageCollection: (images: CreateImageFnParams[]) => Block; export declare const createQuote: (text: string, author?: string) => Block[];