export declare const decodeBase64RGB: (base64: string, width: number, height: number) => Uint8ClampedArray;
export declare const decodeRGB332: (data: string, width: number, height: number) => Uint8ClampedArray;
/**
 * Renders a decoded preview onto a canvas context by decoding image data
 * from a specified format and scaling it to the desired size.
 *
 * @param ctx - The 2D rendering context of the target canvas.
 * @param format - The format of the input data string. Can be either 'base64' or 'rgb332'.
 * @param dataString - The encoded image data as a string.
 * @param width - The width of the image in pixels.
 * @param height - The height of the image in pixels.
 * @param pixelSize - The scaling factor for each pixel in the rendered image.
 *
 * @remarks
 * - If `format` is 'base64', the `dataString` is decoded using `decodeBase64RGB`.
 * - If `format` is 'rgb332', the `dataString` is decoded using `decodeRGB332`.
 * - The function creates a temporary canvas to decode and render the image data
 *   before scaling it onto the target canvas.
 * - Image smoothing is disabled to preserve the pixelated appearance of the image.
 */
export declare function renderDecodedPreview({ ctx, format, dataString, width, height, pixelSize, }: {
    ctx: CanvasRenderingContext2D;
    format: "base64" | "rgb332";
    dataString: string;
    width: number;
    height: number;
    pixelSize: number;
}): void;
//# sourceMappingURL=preview-decoder.d.ts.map