/** * https://tc39.es/ecma262/#sec-toobject * @param arg */ export declare function toObject(arg: T): T extends null ? never : T extends undefined ? never : T; /** * https://tc39.es/ecma402/#sec-getoption * @param opts * @param prop * @param type * @param values * @param fallback */ export declare function getOption(opts: T, prop: K, type: 'string' | 'boolean', values?: T[K][], fallback?: T[K]): T[K] | undefined; export declare function getAliasesByLang(lang: string): Record; export declare function getParentLocalesByLang(lang: string): Record; export declare function setInternalSlot(map: WeakMap, pl: Instance, field: Field, value: Internal[Field]): void; export declare function getInternalSlot(map: WeakMap, pl: Instance, field: Field): Internal[Field]; export interface LiteralPart { type: 'literal'; value: string; } export declare function isLiteralPart(patternPart: LiteralPart | { type: string; value?: string; }): patternPart is LiteralPart; export declare function partitionPattern(pattern: string): ({ type: string; value: string; } | { type: string; value: undefined; })[];