import { Color } from 'chessground/types';
import { PieceColorRole } from './resource/chessfield.types.ts';
import * as cg from 'chessground/types';
export declare const cm: (meter: number) => number;
export declare const objKey: (color: Color, key: cg.Role) => PieceColorRole;
export declare function hexToRgb(hex: string | number): [number, number, number];
/**
 * @doc return x and y positions on the board
 * @param lastMove
 */
export declare function lmToCoordinates(lastMove: cg.Key[] | undefined): {
    x: number;
    y: number;
}[];
export declare function fadeAlpha(uAlpha: {
    value: number;
}, duration?: number): void;
