UNPKG

tav-media

Version:

Cross platform media editing framework

11 lines (10 loc) 752 B
import { LayerType, Vector } from '../types'; import type { PAGLayer } from '../pag-layer'; import type { PAGImageLayer } from '../pag-image-layer'; import type { PAGSolidLayer } from '../pag-solid-layer'; import type { PAGTextLayer } from '../pag-text-layer'; export declare const proxyVector: <T extends (...args: any) => any>(vector: Vector<any>, process: T) => Vector<ReturnType<T>>; export declare const isOffscreenCanvas: (element: any) => boolean; export declare const layer2typeLayer: (wasmIns: any) => PAGSolidLayer | PAGTextLayer | PAGImageLayer | PAGLayer; export declare const getLayerTypeName: (layerType: LayerType) => "Solid" | "Text" | "Shape" | "Image" | "PreCompose" | "Unknown"; export declare const getWasmIns: (value: any) => any;