export declare const encode: {
    (params: {
        data: BufferSource;
        width: number;
        height: number;
        quality?: number;
        worker?: string;
    } | {
        data: ImageData;
        width?: number;
        height?: number;
        quality?: number;
        worker?: string;
    }): Promise<Uint8Array | null>;
};
declare const _default: true;
export default _default;
