import { Option } from './types'; /** * encode: encode string to morse code. * - msg: strings need to be encode. * - option: encode option. * * Return the morse code. * * Usage * var option = { * space: ' ', * long: '-', * short: '*' * }; * encode('I love you.', option); * Will get return with `** *-** --- ***- * -*-- --- **- *-*-*-`. * **/ export declare function encode(msg: string, option?: Option): string;