magica
Version:
ImageMagick for browser and Node.js, easy setup, high level API and Command Line Interface, including WASM binary for an easy setup.
24 lines (23 loc) • 877 B
TypeScript
import { Deferred, isNode } from 'misc-utils-of-mine-generic';
import { FS } from '../file/emscriptenFs';
import { getOptions } from '../options';
import { NativeMain } from './createMain';
export interface Main {
main: NativeMain;
FS: FS;
}
export declare const magickLoaded: Deferred<Main, any>;
export declare function getMagick(): {
FS: FS;
main: NativeMain;
};
export declare function getFS(): FS;
export declare function getMain(): NativeMain;
export declare function pushStdout(...s: string[]): void;
export declare function resetStdout(): void;
export declare function getStdout(): string[];
export declare function pushStderr(...s: string[]): void;
export declare function resetStderr(): void;
export declare function getStderr(): string[];
export declare function moduleLocateFile(path: string, prefix: string): string;
export { getOptions, isNode };