import type { DecryptionAttestation } from '../attesteddecrypt/types.js'; import { HexString } from '../binary.js'; import { EncryptionScheme, SupportedFheType } from '../encryption/encryption.js'; import { SupportedScalarBinaryOp } from '../generated/es/inco/kms/lite/v1/kms_service_pb.js'; import type { BackoffConfig } from '../retry.js'; /** * Supported attested compute operations. */ export declare const AttestedComputeSupportedOps: { readonly Eq: SupportedScalarBinaryOp.FHE_EQ; readonly Ne: SupportedScalarBinaryOp.FHE_NE; readonly Ge: SupportedScalarBinaryOp.FHE_GE; readonly Gt: SupportedScalarBinaryOp.FHE_GT; readonly Le: SupportedScalarBinaryOp.FHE_LE; readonly Lt: SupportedScalarBinaryOp.FHE_LT; }; /** * This type represents all the supported operations for attested compute. */ export type AttestedComputeOP = (typeof AttestedComputeSupportedOps)[keyof typeof AttestedComputeSupportedOps]; /** * Custom error class for attested compute operations. */ export declare class AttestedComputeError extends Error { readonly cause?: unknown | undefined; constructor(message: string, cause?: unknown | undefined); } export type AttestedCompute = (args: AttestedComputeFnArgs) => Promise>; export type AttestedComputeFnArgs = { /** The handle to compute on */ lhsHandle: HexString; op: AttestedComputeOP; rhsPlaintext: bigint | boolean; backoffConfig?: Partial; };