/** * Shared scaffolding for Fly SecretKey HTTP bindings. * * NOT exported from `index.ts`. */ import * as Effect from "effect/Effect"; import { FlyKmsError } from "./Errors.ts"; import type { SecretAuth } from "./SecretHttp.ts"; import type { SecretKey } from "./SecretKey.ts"; export declare const bytesToBase64: (bytes: Uint8Array | ArrayLike) => string; export declare const base64ToBytes: (value: string | undefined) => Uint8Array; /** * PetSem crypto over the Machine unix socket. Fly expects base64 strings, * not integer arrays. Org tokens are Forbidden; `/.fly/api` is the * machine identity. */ export declare const flyKmsPost: (appName: string, secretName: string, op: "encrypt" | "decrypt" | "sign" | "verify", body: Record) => Effect.Effect, FlyKmsError>; export declare const makeHttpSecretKeyBinding: (options: { makeClient: (auth: SecretAuth, appName: Effect.Effect, secretName: Effect.Effect) => Client; }) => Effect.Effect<(resource: SecretKey) => Effect.Effect, never, import("@distilled.cloud/fly-io").Credentials | import("effect/unstable/http/HttpClient").HttpClient>; //# sourceMappingURL=SecretKeyHttp.d.ts.map