export declare const encode: (val: string) => Promise;