import { DotPatternCfg, LinePatternCfg, SquarePatternCfg } from '../../types/pattern';
export declare type PatternOption = {
    type: 'dot';
    cfg?: DotPatternCfg;
} | {
    type: 'line';
    cfg?: LinePatternCfg;
} | {
    type: 'square';
    cfg?: SquarePatternCfg;
};
/**
 * 获取内置的 CanvasPattern 方法
 * @param options
 * @returns
 */
export declare function getCanvasPattern(options: PatternOption): CanvasPattern | undefined;
