export type SignEncodeMethod = 'hex' | 'base64';
export type SignAlgorithm = 'SHA-256' | 'SHA-512';
export type SignKeyType = 'HMAC' | 'RSASSA-PKCS1-v1_5' | 'Ed25519';
export declare function getSignKeyType(secret: string): SignKeyType;
/**
 * Sign a message, with a secret, using the Web Crypto API
 */
export declare function signMessage(message: string, secret: string, method?: SignEncodeMethod, algorithm?: SignAlgorithm): Promise<string>;
export declare function checkWebCryptoAPISupported(): void;
