export interface RawDraftEntityRange { key: number; offset: number; length: number; } export type DraftBlockType = CoreDraftBlockType | CustomBlockType; type CoreDraftBlockType = 'header-one' | 'header-two' | 'header-three' | 'header-four' | 'header-five' | 'header-six' | 'section' | 'article' | 'unordered-list-item' | 'ordered-list-item' | 'blockquote' | 'atomic' | 'code-block' | 'unstyled'; type CustomBlockType = string; export interface RawDraftInlineStyleRange { style: DraftInlineStyleType; offset: number; length: number; } type DraftInlineStyleType = 'BOLD' | 'CODE' | 'ITALIC' | 'STRIKETHROUGH' | 'UNDERLINE'; export interface RawDraftContentBlock { key: string; type: DraftBlockType; text: string; depth: number; inlineStyleRanges: RawDraftInlineStyleRange[]; entityRanges: RawDraftEntityRange[]; data?: { [key: string]: any; } | undefined; } export interface RawDraftEntity { type: DraftEntityType; mutability: DraftEntityMutability; data: T; } type DraftEntityType = string; type DraftEntityMutability = 'MUTABLE' | 'IMMUTABLE' | 'SEGMENTED'; export interface RawDraftContentState { blocks: RawDraftContentBlock[]; entityMap: { [key: string]: RawDraftEntity; }; } export {}; //# sourceMappingURL=draft-js.d.ts.map