///
///
import type { BinaryLike, KeyLike, SignKeyObjectInput, SignPrivateKeyInput } from 'crypto';
import { ShaAlgorithmEnum } from './constants';
import type { SignOptions } from './sign';
export declare function sha(key: BinaryLike, body: BinaryLike, algorithm: ShaAlgorithmEnum): string;
export declare function rsa(key: KeyLike | SignKeyObjectInput | SignPrivateKeyInput, body: BinaryLike): string;
export declare function generateNonce(size?: number): string;
export declare function generateTimestamp(): string;
export declare function rfc3986(str: string): string;
export declare function compare(a: string, b: string): 0 | 1 | -1;
export declare function calculateBodyHash(signatureMethod: SignOptions['signMethod'], body: Buffer): string;
export declare function convertToBuffer(data: string | URLSearchParams | FormData): Buffer;