@atlaskit/editor-core
Version:
A package contains Atlassian editor core functionality
15 lines (14 loc) • 873 B
TypeScript
import { MediaProvider, MediaStateManager } from '@atlaskit/media-core';
/**
* Add "import * as mediaTestHelpers from '@atlaskit/media-test-helpers'"
* at the beginning of your file and pass "mediaTestHelpers" into this function
*/
export declare function storyMediaProviderFactory(mediaTestHelpers: any, collection?: string, stateManager?: MediaStateManager, includeUploadContext?: boolean, dropzoneContainer?: HTMLElement, includeLinkCreateContext?: boolean): Promise<MediaProvider>;
export declare type promisedString = Promise<string>;
export declare type resolveFn = (...any) => any;
export declare type thumbnailStore = {
[id: string]: promisedString | resolveFn;
};
export declare function fileToBase64(blob: any): Promise<{}>;
export declare function isImage(type: string): boolean;
export declare function getLinkCreateContextMock(testLinkId: string): any;