import type { Texture } from '@antv/g-device-api'; import type { Plugin } from '@antv/g-plugin-device-renderer'; /** * 创建纹理,支持缓存 * * Create texture, support cache * @param plugin - 插件对象 plugin * @param src - 纹理路径或者图片对象 texture path or image object * @returns 纹理对象 texture object */ export declare function createTexture(plugin: Plugin, src?: string | TexImageSource): Texture | undefined;