@iota/iota-names-sdk
Version:
IOTA-Names SDK
11 lines (10 loc) • 634 B
TypeScript
export declare function isValidIotaName(name: string): boolean;
interface NormalizeOptions {
onlyFirstSubname?: boolean;
truncateLongParts?: boolean;
ellipsisForDeepSubnames?: boolean;
}
export declare function normalizeIotaName(name: string, format?: 'at' | 'dot', { onlyFirstSubname, truncateLongParts, ellipsisForDeepSubnames, }?: NormalizeOptions): string;
export declare function validateIotaSubname(name: string, minLength?: number, maxLength?: number): string | null;
export declare function validateIotaName(name: string, minLength?: number, maxLength?: number, allowSubnames?: boolean): string | null;
export {};