UNPKG

@altostra/core

Version:

Core library for shared types and logic

16 lines (15 loc) 582 B
import type { MappedAlphabetParams } from "./MappedAlphabetBase"; import { MappedAlphabetBase } from "./MappedAlphabetBase"; /** * An alphabet which is based on another alphabet, where all the characters are replaced * with other characters. * * All base-characters must be mapped (even if back to themselves). */ export declare class FullyMappedAlphabet extends MappedAlphabetBase { constructor(params: MappedAlphabetParams); has(char: string): boolean; getAt(index: number): string; indexOf(char: string): number; [Symbol.iterator](): Iterator<string>; }