import { type IsHexErrorType } from '../data/isHex.js'; import { type ToBytesErrorType } from '../encoding/toBytes.js'; import { type ToHexErrorType } from '../encoding/toHex.js'; import type { ErrorType } from '../errors/utils.js'; import type { Bytes, Hex } from '../types/data.js'; type To = 'hex' | 'bytes'; export type Sha256Hash = (to extends 'bytes' ? Bytes : never) | (to extends 'hex' ? Hex : never); export type Sha256ErrorType = IsHexErrorType | ToBytesErrorType | ToHexErrorType | ErrorType; export declare function sha256(value: Hex | Bytes, to_?: to | undefined): Sha256Hash; export {}; //# sourceMappingURL=sha256.d.ts.map