import { Layer } from 'ol/layer';
import { default as ImageCanvasSource } from 'ol/source/ImageCanvas';
import { Extent } from 'ol/extent';
import { Size } from 'ol/size';
import { BaseLayer } from './BaseLayer';
import { LayerConfig } from '../../types';

/**
 * Canvas图层处理器
 * 支持自定义Canvas绘制内容
 */
export declare class CanvasLayerHandler extends BaseLayer {
    private canvasFunction?;
    private canvasSize;
    createLayer(): Layer<ImageCanvasSource>;
    /**
     * 获取Canvas绘制函数
     */
    private getCanvasFunction;
    /**
     * 绘制网格
     */
    private drawGrid;
    /**
     * 绘制默认内容
     */
    private drawDefaultContent;
    /**
     * 设置自定义Canvas绘制函数
     */
    setCanvasFunction(canvasFunction: (extent: Extent, resolution: number, pixelRatio: number, size: Size, projection: any) => HTMLCanvasElement): void;
    /**
     * 设置Canvas尺寸
     */
    setCanvasSize(size: [number, number]): void;
    /**
     * 刷新图层
     */
    private refreshLayer;
    /**
     * 更新Canvas配置
     */
    updateCanvasConfig(config: any): void;
    /**
     * 获取Canvas配置
     */
    getCanvasConfig(): any;
    /**
     * 更新图层配置
     */
    updateLayerConfig(config: Partial<LayerConfig>): void;
    /**
     * 清除Canvas内容
     */
    clearCanvas(): void;
    /**
     * 重绘Canvas
     */
    redraw(): void;
    /**
     * 应用过滤器（Canvas图层不支持过滤）
     */
    protected applyFilters(): void;
}
//# sourceMappingURL=CanvasLayerHandler.d.ts.map