@funded-labs/dab-js
Version:
JS adapter for DAB
9 lines (8 loc) • 469 B
TypeScript
export declare const CANISTER_MAX_LENGTH = 27;
export declare const PRINCIPAL_REGEX: RegExp;
export declare const ALPHANUM_REGEX: RegExp;
export declare const isValidPrincipal: (text: string) => boolean;
export declare const validatePrincipalId: (text: string) => boolean;
export declare const validateAccountId: (text: any) => boolean;
export declare const validateCanisterId: (text: string) => boolean;
export declare const validateToken: (metadata: any) => boolean;