import { Optional } from '@ephox/katamari'; import { SugarPosition } from '@ephox/sugar'; export type DragCoords> = (x: T, y: T) => U; export interface CoordAdt { fold: (offset: DragCoords, absolute: DragCoords, fixed: DragCoords) => U; match: (branches: { offset: DragCoords; absolute: DragCoords; fixed: DragCoords; }) => U; log: (label: string) => void; } export type StylesCoord = { left: Optional; right: Optional; top: Optional; bottom: Optional; position: Optional; }; export type CoordStencil = (coord: CoordAdt, scroll: SugarPosition, origin: SugarPosition) => SugarPosition; declare const asFixed: CoordStencil; declare const asAbsolute: CoordStencil; declare const asOffset: CoordStencil; declare const toString: (coord: CoordAdt) => string; declare const withinRange: (coord1: CoordAdt, coord2: CoordAdt, xRange: number, yRange: number, scroll: SugarPosition, origin: SugarPosition) => boolean; declare const getDeltas: (coord1: CoordAdt, coord2: CoordAdt, xRange: number, yRange: number, scroll: SugarPosition, origin: SugarPosition) => SugarPosition; declare const toStyles: (coord: CoordAdt, scroll: SugarPosition, origin: SugarPosition) => StylesCoord; declare const translate: (coord: CoordAdt, deltaX: number, deltaY: number) => CoordAdt; declare const absorb: (partialCoord: CoordAdt>, originalCoord: CoordAdt, scroll: SugarPosition, origin: SugarPosition) => CoordAdt; declare const offset: { (x: number, y: number): CoordAdt; (x: Optional, y: Optional): CoordAdt>; }; declare const absolute: { (x: number, y: number): CoordAdt; (x: Optional, y: Optional): CoordAdt>; }; declare const fixed: { (x: number, y: number): CoordAdt; (x: Optional, y: Optional): CoordAdt>; }; export { offset, absolute, fixed, asFixed, asAbsolute, asOffset, withinRange, getDeltas, toStyles, translate, absorb, toString }; //# sourceMappingURL=DragCoord.d.ts.map