import type * as paymentcryptographydata from "@distilled.cloud/aws/payment-cryptography-data"; import type * as Effect from "effect/Effect"; import * as Binding from "../../Binding.ts"; import type { Key } from "./Key.ts"; export interface GenerateMacRequest extends Omit { } /** * Runtime binding for `payment-cryptography:GenerateMac` — computes a * Message Authentication Code over hex-encoded message data under a * {@link Key}. Provide `GenerateMacHttp` on the Function to satisfy this * service. * ### Generating MACs * **Example:** Generate an HMAC over message data * ```typescript * // init * const generateMac = yield* PaymentCryptography.GenerateMac(macKey); * * // runtime — MessageData is hex-encoded * const result = yield* generateMac({ * MessageData: "31323334353637383930313233343536", * GenerationAttributes: { Algorithm: "HMAC" }, * }); * ``` * * @binding */ export interface GenerateMac extends Binding.Service(key: K) => Effect.Effect<(request: GenerateMacRequest) => Effect.Effect>> { } export declare const GenerateMac: GenerateMac; //# sourceMappingURL=GenerateMac.d.ts.map