export default function (request: { amount: number; rate: number; type: string; }): number | null;