/// export declare const env: ty.env; export declare const createAnimation: typeof ty.createAnimation; export declare const pageScrollTo: typeof ty.pageScrollTo; export declare const createSelectorQuery: typeof ty.createSelectorQuery; export declare const createIntersectionObserver: typeof ty.createIntersectionObserver; export declare const createCanvasContext: typeof ty.createCanvasContext; export declare const canvasGetImageData: typeof ty.canvasGetImageData; export declare const canvasPutImageData: typeof ty.canvasPutImageData; export declare const createVideoContext: typeof ty.createVideoContext; export declare const createNativeVideoContext: typeof ty.createNativeVideoContext; export declare const createMapContext: typeof ty.createMapContext; export declare const createIpcPlayerContext: typeof ty.createIpcPlayerContext; export declare const createCameraContext: typeof ty.createCameraContext; export declare const createWebviewContext: typeof ty.createWebviewContext; export declare const connectSocket: typeof ty.connectSocket; /** * @description 对页面内的唯一元素进行截图,注意: 可能由于页面样式的复杂度因素,截图结果可能会有所不同,如遇到此类问题,可尝试调整页面样式 * @since 基础库 2.23.0 @ray-js/ray 1.6.24 * @param {Object} params * @property {string} params.selector 元素唯一ID 或唯一 class , 默认: 截取当前页面 * @property {string} params.backgroundColor 背景颜色, 默认: jpeg #ffffff png 透明 * @property {string} params.format 图片格式, 默认: png 可选值: jpeg, png * @property {number} params.quality 图片质量, 默认: 1 可选值: 0-1, 仅在 jpeg 格式下有效 * @returns {Promise} 接口调用成功的回调函数 * @returns {Promise} 接口调用失败的回调函数 * @returns {Promise} 接口调用结束的回调函数 */ export declare const snapshot: typeof ty.snapshot;