UNPKG

@phensley/cldr-core

Version:
22 lines (21 loc) 1.19 kB
import { AltType, LayoutSchema, ListPatternsSchema, ListPatternPositionType, NamesSchema, Vector1Arrow } from '@phensley/cldr-schema'; import { Internals } from '../../internals'; import { Bundle } from '../../resource'; import { ListPatternType } from '../../common'; import { Part } from '../../types'; import { GeneralInternals } from '..'; export declare class GeneralInternalsImpl implements GeneralInternals { readonly internals: Internals; protected layout: LayoutSchema; protected listPatterns: ListPatternsSchema; protected names: NamesSchema; constructor(internals: Internals); characterOrder(bundle: Bundle): string; lineOrder(bundle: Bundle): string; formatList(bundle: Bundle, items: string[], type: ListPatternType): string; formatListToParts(bundle: Bundle, items: string[], type: ListPatternType): Part[]; getScriptDisplayName(bundle: Bundle, code: string): string; getRegionDisplayName(bundle: Bundle, code: string, alt?: AltType): string; formatListToPartsImpl(bundle: Bundle, items: Part[][], type: ListPatternType): Part[]; protected selectListPattern(type: ListPatternType): Vector1Arrow<ListPatternPositionType>; }