/** Every converter returns this shape. `error` is a message (and `out` is '') when the input cannot be converted. */ export interface Result { out: string; error: string | null; notes: string[]; } export interface AsciiRow { code: number; abbr: string; name: string; printable: boolean; } export const MORSE: Record; export const morseOrder: string[]; export function morseEncode(text: string): Result; export function morseDecode(code: string): Result; /** [[isOn, units], ...]: dit = 1 on, dash = 3 on, 1 off between marks, 3 between letters, 7 between words. */ export function morseSchedule(code: string): Array<[boolean, number]>; export function morseUnits(code: string): number; /** Milliseconds per Morse unit at a words-per-minute speed (1200 / wpm). */ export function unitMs(wpm: number): number; export function textToBinary(text: string): Result; export function binaryToText(bits: string): Result; export function decToBin(n: string): Result; export function binToDec(bits: string): Result; export function textToHex(text: string, options?: { sep?: string; prefix?: boolean; upper?: boolean }): Result; export function hexToText(hex: string): Result; export function decToHex(n: string, upper?: boolean): Result; export function hexToDec(hex: string): Result; export function asciiRow(code: number): AsciiRow; export function textToAscii(text: string, base?: 2 | 8 | 10 | 16): Result; export function asciiToText(codes: string, base?: 2 | 8 | 10 | 16): Result; export const romanPairs: Array<[number, string]>; export function toRomanInt(n: number): string; export function numberToRoman(n: string): Result; export function romanToNumber(roman: string): Result; export const NATO_LETTERS: string[]; export const NATO_DIGITS: string[]; export function natoEncode(text: string): Result; export function natoDecode(words: string): Result; /** Shifts letters A-Z/a-z only; everything else is unchanged. Returns a plain string. */ export function caesar(text: string, shift: number): string; export function caesarEncode(text: string, shift: number): Result; export function caesarDecode(text: string, shift: number): Result; export function rot13(text: string): string; /** Row k is the text if the sender had shifted by k. */ export function allShifts(cipher: string): Array<[number, string]>; export function brailleCell(ch: string): string | null; export const BRAILLE: Record; export function brailleEncode(text: string): Result; export function brailleDecode(cells: string): Result; declare const CTK: Record; export default CTK;