@atproto/common-web
Version:
Shared web-platform-friendly code for atproto libraries
17 lines • 635 B
TypeScript
export declare const utf8Len: (str: string) => number;
export declare const graphemeLen: (str: string) => number;
export declare const utf8ToB64Url: (utf8: string) => string;
export declare const b64UrlToUtf8: (b64: string) => string;
export declare const parseLanguage: (langTag: string) => LanguageTag | null;
export declare const validateLanguage: (langTag: string) => boolean;
export type LanguageTag = {
grandfathered?: string;
language?: string;
extlang?: string;
script?: string;
region?: string;
variant?: string;
extension?: string;
privateUse?: string;
};
//# sourceMappingURL=strings.d.ts.map