export declare function wrapValue(x: number, max?: number): number;