import type { Core } from '@pdftron/webviewer';
import { Futurable } from '../data';
export declare const globalLicense: {
    set(newLicense: string): void;
    get(): string | undefined;
};
/**
 * Convert a WebViewer Core Document into a Blob.
 * @param documentObj A WebViewer Core Document, or promise to get it.
 */
export declare function documentToBlob(documentObj: Futurable<Core.Document | undefined>): Promise<Blob>;
/**
 * Convert a Blob and extension into a WebViewer Core Document.
 * @param blob A Blob, or promise to get it.
 * @param extension The file extension of the provided Blob.
 * @param l License key. If not provided, will try to use global license.
 */
export declare function blobToDocument(blob: Futurable<Blob>, extension: string, l?: string): Promise<Core.Document | undefined>;
/**
 * Rotate a document 90 degrees.
 * @param documentObj A WebViewer Core Document, or promise to get it.
 * @param counterclockwise If provided, will rotate counterclockwise instead of
 * the default clockwise.
 */
export declare function getRotatedDocument(documentObj: Futurable<Core.Document | undefined>, counterclockwise?: boolean): Promise<Core.Document | undefined>;
declare type GetThumbnailOptions = {
    extension?: string;
    pageNumber?: number;
};
/**
 * Gets the thumbnail for a document.
 * @param documentObj A WebViewer Core Document, or promise to get it.
 * @param options Additional options for the function.
 */
export declare function getThumbnail(documentObj: Futurable<Core.Document | undefined>, options?: GetThumbnailOptions): Promise<string>;
export {};
