import { type NumberToHexErrorType } from '../encoding/toHex.js'; import type { ErrorType } from '../errors/utils.js'; import type { Bytes, Hex } from '../types/data.js'; export type To = 'object' | 'bytes' | 'hex'; export type SignParameters = { hash: Hex; privateKey: Hex; to?: to | To | undefined; }; export type SignReturnType = (to extends 'object' ? { r: Hex; s: Hex; v: number; yParity: number; } : never) | (to extends 'bytes' ? Bytes : never) | (to extends 'hex' ? Hex : never); export type SignErrorType = NumberToHexErrorType | ErrorType; export declare function sign({ hash, privateKey, to, }: SignParameters): SignReturnType; //# sourceMappingURL=sign.d.ts.map