/// <reference types="node" />
import { SdlRenderer } from './sdl-renderer';
import { SdlTexture } from './sdl-texture';
import { Rect } from '../shape/rect';
export declare class SdlContext2d {
    private renderer;
    private color;
    private textureFormat;
    width: number;
    height: number;
    x: number;
    y: number;
    srcRect: Rect;
    destRect: Rect;
    texture: SdlTexture;
    constructor(renderer: SdlRenderer);
    renderFrame(pixels: Buffer, pixelWidth: number, pixelHeight: number): void;
    destroy(): void;
    private clear;
    update(): void;
    setSize(w: number, h: number): void;
    getSize(): {
        w: number;
        h: number;
    };
    private setRgba;
    private createDynamicTexture;
    private createStaticTexture;
    private createRendererTexture;
}
