declare function truncate(x: T): T; export = truncate;