/** The three code-sets of Code128 */ export type CodeSet = 'A' | 'B' | 'C'; /** Any possible value in our sequence */ export type Code = typeof DATA[number][0]; /** The unicode character representing Code128's `FNC1` */ export declare const FNC1 = "\uF001"; /** The unicode character representing Code128's `FNC2` */ export declare const FNC2 = "\uF002"; /** The unicode character representing Code128's `FNC3` */ export declare const FNC3 = "\uF003"; /** The unicode character representing Code128's `FNC4` */ export declare const FNC4 = "\uF004"; declare const DATA: readonly [readonly [0, " ", " ", "00", "Â"], readonly [1, "!", "!", "01", "!"], readonly [2, "\"", "\"", "02", "\""], readonly [3, "#", "#", "03", "#"], readonly [4, "$", "$", "04", "$"], readonly [5, "%", "%", "05", "%"], readonly [6, "&", "&", "06", "&"], readonly [7, "'", "'", "07", "'"], readonly [8, "(", "(", "08", "("], readonly [9, ")", ")", "09", ")"], readonly [10, "*", "*", "10", "*"], readonly [11, "+", "+", "11", "+"], readonly [12, ",", ",", "12", ","], readonly [13, "-", "-", "13", "-"], readonly [14, ".", ".", "14", "."], readonly [15, "/", "/", "15", "/"], readonly [16, "0", "0", "16", "0"], readonly [17, "1", "1", "17", "1"], readonly [18, "2", "2", "18", "2"], readonly [19, "3", "3", "19", "3"], readonly [20, "4", "4", "20", "4"], readonly [21, "5", "5", "21", "5"], readonly [22, "6", "6", "22", "6"], readonly [23, "7", "7", "23", "7"], readonly [24, "8", "8", "24", "8"], readonly [25, "9", "9", "25", "9"], readonly [26, ":", ":", "26", ":"], readonly [27, ";", ";", "27", ";"], readonly [28, "<", "<", "28", "<"], readonly [29, "=", "=", "29", "="], readonly [30, ">", ">", "30", ">"], readonly [31, "?", "?", "31", "?"], readonly [32, "@", "@", "32", "@"], readonly [33, "A", "A", "33", "A"], readonly [34, "B", "B", "34", "B"], readonly [35, "C", "C", "35", "C"], readonly [36, "D", "D", "36", "D"], readonly [37, "E", "E", "37", "E"], readonly [38, "F", "F", "38", "F"], readonly [39, "G", "G", "39", "G"], readonly [40, "H", "H", "40", "H"], readonly [41, "I", "I", "41", "I"], readonly [42, "J", "J", "42", "J"], readonly [43, "K", "K", "43", "K"], readonly [44, "L", "L", "44", "L"], readonly [45, "M", "M", "45", "M"], readonly [46, "N", "N", "46", "N"], readonly [47, "O", "O", "47", "O"], readonly [48, "P", "P", "48", "P"], readonly [49, "Q", "Q", "49", "Q"], readonly [50, "R", "R", "50", "R"], readonly [51, "S", "S", "51", "S"], readonly [52, "T", "T", "52", "T"], readonly [53, "U", "U", "53", "U"], readonly [54, "V", "V", "54", "V"], readonly [55, "W", "W", "55", "W"], readonly [56, "X", "X", "56", "X"], readonly [57, "Y", "Y", "57", "Y"], readonly [58, "Z", "Z", "58", "Z"], readonly [59, "[", "[", "59", "["], readonly [60, "\\", "\\", "60", "\\"], readonly [61, "]", "]", "61", "]"], readonly [62, "^", "^", "62", "^"], readonly [63, "_", "_", "63", "_"], readonly [64, "\0", "`", "64", "`"], readonly [65, "\u0001", "a", "65", "a"], readonly [66, "\u0002", "b", "66", "b"], readonly [67, "\u0003", "c", "67", "c"], readonly [68, "\u0004", "d", "68", "d"], readonly [69, "\u0005", "e", "69", "e"], readonly [70, "\u0006", "f", "70", "f"], readonly [71, "\u0007", "g", "71", "g"], readonly [72, "\b", "h", "72", "h"], readonly [73, "\t", "i", "73", "i"], readonly [74, "\n", "j", "74", "j"], readonly [75, "\v", "k", "75", "k"], readonly [76, "\f", "l", "76", "l"], readonly [77, "\r", "m", "77", "m"], readonly [78, "\u000E", "n", "78", "n"], readonly [79, "\u000F", "o", "79", "o"], readonly [80, "\u0010", "p", "80", "p"], readonly [81, "\u0011", "q", "81", "q"], readonly [82, "\u0012", "r", "82", "r"], readonly [83, "\u0013", "s", "83", "s"], readonly [84, "\u0014", "t", "84", "t"], readonly [85, "\u0015", "u", "85", "u"], readonly [86, "\u0016", "v", "86", "v"], readonly [87, "\u0017", "w", "87", "w"], readonly [88, "\u0018", "x", "88", "x"], readonly [89, "\u0019", "y", "89", "y"], readonly [90, "\u001A", "z", "90", "z"], readonly [91, "\u001B", "{", "91", "{"], readonly [92, "\u001C", "|", "92", "|"], readonly [93, "\u001D", "}", "93", "}"], readonly [94, "\u001E", "~", "94", "~"], readonly [95, "\u001F", "", "95", "Ã"], readonly [96, "", "", "96", "Ä"], readonly [97, "", "", "97", "Å"], readonly [98, undefined, undefined, "98", "Æ"], readonly [99, undefined, undefined, "99", "Ç"], readonly [100, undefined, "", undefined, "È"], readonly [101, "", undefined, undefined, "É"], readonly [102, "", "", "", "Ê"], readonly [103, undefined, undefined, undefined, "Ë"], readonly [104, undefined, undefined, undefined, "Ì"], readonly [105, undefined, undefined, undefined, "Í"]]; /** Sequences encodable with code-set `A` and related values */ export declare const CODESET_A: Record; /** Sequences encodable with code-set `B` and related values */ export declare const CODESET_B: Record; /** Sequences encodable with code-set `C` and related values */ export declare const CODESET_C: Record; /** Encodable characters with the various code-sets */ export declare const CODESETS: { readonly A: Record; readonly B: Record; readonly C: Record; }; /** Array of all characters present in our Code128 font */ export declare const CHARACTERS: Record & Array; /** Shift to code-set `B` (one character) while in code-set `A`, or vice-versa */ export declare const SHIFT = 98; /** Switch to code-set `C` (following characters) while in code-set `A` or `B` */ export declare const CODE_C = 99; /** Switch to code-set `B` (following characters) while in code-set `A` or `C` */ export declare const CODE_B = 100; /** Switch to code-set `A` (following characters) while in code-set `B` or `C` */ export declare const CODE_A = 101; /** Start with code-set `A` */ export declare const START_A = 103; /** Start with code-set `B` */ export declare const START_B = 104; /** Start with code-set `C` */ export declare const START_C = 105; /** Start strings by code-set */ export declare const START: { readonly A: 103; readonly B: 104; readonly C: 105; }; /** The stop character */ export declare const STOP = "\u00CE"; /** Our encoder class */ export declare class Encoder { /** The _current_ code-set of this encoder */ private _codeset; /** The array of values encoded so far */ private _values; /** The remainder of the string to encode */ private _string; /** An array of encoders to add forks of this encoder to */ private _encoders; constructor(codeset: CodeSet, string: string, encoders: Encoder[], values?: Code[]); /** Whether this encoder is done or not */ get done(): boolean; /** * Do the next round of encoding, returning `true` if _this_ instance has * finished encoding. */ encode(length: number): boolean; /** Finish the encoding, and return the string for our barcode */ finish(): string; } export declare function code128(string: string, codeset?: CodeSet): string; export {};