import { type HexToBigIntErrorType } from '../encoding/fromHex.js'; import type { ToHexErrorType } from '../encoding/toHex.js'; import type { ErrorType } from '../errors/utils.js'; import type { Bytes, Hex } from '../types/data.js'; import type { Signature } from '../types/signature.js'; type To = 'bytes' | 'hex'; export type SerializeSignatureOptions = { to?: to | To | undefined; }; export type SerializeSignatureReturnType = (to extends 'hex' ? Hex : never) | (to extends 'bytes' ? Bytes : never); export type SerializeSignatureErrorType = HexToBigIntErrorType | ToHexErrorType | ErrorType; export declare function serializeSignature(signature_: Signature, options?: SerializeSignatureOptions): SerializeSignatureReturnType; export {}; //# sourceMappingURL=serializeSignature.d.ts.map