/** * * This file may have been modified by Bytedance Inc. (“Bytedance Inc.'s Modifications”). * All Bytedance Inc.'s Modifications are Copyright (year) Bytedance Inc.. * * This source code is licensed under the Apache license. * See LICENSE file in the project root for license information. * */ import { Area, MediaSize, Point, Size } from './types'; export declare function getCropSize(mediaWidth: number, mediaHeight: number, containerWidth: number, containerHeight: number, aspect: number, rotation?: number): Size; export declare function getMediaZoom(mediaSize: MediaSize): number; export declare function restrictPosition(position: Point, mediaSize: Size, cropSize: Size, zoom: number, rotation?: number): Point; export declare function getDistanceBetweenPoints(pointA: Point, pointB: Point): number; export declare function getRotationBetweenPoints(pointA: Point, pointB: Point): number; export declare function computeCroppedArea(crop: Point, mediaSize: MediaSize, cropSize: Size, aspect: number, zoom: number, rotation?: number, restrictPosition?: boolean): { croppedAreaPercentages: Area; croppedAreaPixels: Area; }; export declare function getInitialCropFromCroppedAreaPercentages(croppedAreaPercentages: Area, mediaSize: MediaSize, rotation: number, cropSize: Size, minZoom: number, maxZoom: number): { crop: { x: number; y: number; }; zoom: number; }; export declare function getInitialCropFromCroppedAreaPixels(croppedAreaPixels: Area, mediaSize: MediaSize, rotation: number | undefined, cropSize: Size, minZoom: number, maxZoom: number): { crop: Point; zoom: number; }; export declare function getCenter(a: Point, b: Point): Point; export declare function getRadianAngle(degreeValue: number): number; export declare function rotateSize(width: number, height: number, rotation: number): Size; export declare function clamp(value: number, min: number, max: number): number; export declare function classNames(...args: (boolean | string | number | undefined | void | null)[]): string;