import { vec3, mat3, mat4, vec4 } from 'gl-matrix'; export declare type TransformCallback = (x: number, y: number, width: number, height: number) => Transformer; export declare type Transform3DCallback = (x: number, y: number, z: number, width: number, height: number, depth: number) => Transformer3D; declare type Translate = ['translate', number, number]; declare type Cartesian = ['cartesian']; declare type Custom = ['custom', TransformCallback]; declare type Matrix = ['matrix', Matrix3]; declare type Polar = ['polar', number, number, number, number]; declare type Transpose = ['transpose']; declare type Scale = ['scale', number, number]; declare type ShearX = ['shear.x', number]; declare type ShearY = ['shear.y', number]; declare type Reflect = ['reflect']; declare type ReflectX = ['reflect.x']; declare type ReflectY = ['reflect.y']; declare type Rotate = ['rotate', number]; declare type Helix = ['helix', number, number, number, number]; declare type Parallel = ['parallel', number, number, number, number]; declare type Fisheye = ['fisheye', number, number, number, number, boolean?]; declare type FisheyeX = ['fisheye.x', number, number, boolean?]; declare type FisheyeY = ['fisheye.y', number, number, boolean?]; declare type FisheyeCircular = ['fisheye.circular', number, number, number, number, boolean?]; declare type Cartesian3D = ['cartesian3D']; declare type Translate3D = ['translate3D', number, number, number]; declare type Transpose3D = ['transpose3D']; declare type Scale3D = ['scale3D', number, number, number]; export declare type Transformation = Translate | Cartesian | Custom | Matrix | Polar | Transpose | Scale | ShearX | ShearY | Reflect | ReflectX | ReflectY | Rotate | Helix | Parallel | Fisheye | FisheyeX | FisheyeY | FisheyeCircular; export declare type Transformation3D = Cartesian3D | Translate3D | Scale3D | Transpose3D; export declare type Options = { x?: number; y?: number; width?: number; height?: number; transformations?: Transformation[]; }; export declare type Options3D = { x?: number; y?: number; z?: number; width?: number; height?: number; depth?: number; transformations?: Transformation3D[]; }; export declare type Vector2 = [number, number]; export declare type Vector3 = vec3; export declare type Vector4 = vec4; export declare type Vector = number[]; export declare type Matrix3 = mat3; export declare type Matrix4 = mat4; export declare type Transform = (vector: Vector2 | Vector) => Vector2 | Vector; export declare type Transform3D = (vector: Vector3 | Vector) => Vector3 | Vector; export declare type Transformer = { transform?: Transform; untransform?: Transform; }; export declare type Transformer3D = { transform?: Transform3D; untransform?: Transform3D; }; export declare type CreateTransformer = (params: number[] | (number | boolean)[] | [TransformCallback] | [Matrix3], x: number, y: number, width: number, height: number) => Transformer | Matrix3; export declare type CreateTransformer3D = (params: number[] | (number | boolean)[] | [TransformCallback] | [Matrix3], x: number, y: number, z: number, width: number, height: number, depth: number) => Transformer3D | Matrix4; export {};