import type { EnvVar, Job } from '../types/env.js'; import type { AcurastSigner } from './signer.js'; import type { TransactionQueue } from './tx-queue.js'; import type { KeyStore } from './key-store.js'; import { type Logger } from '../deploy/logger.js'; export interface SetEnvVarsOptions { /** Wallet used to sign the `setEnvironments` extrinsic(s). */ wallet: AcurastSigner; /** WebSocket RPC endpoint for the Acurast chain. */ rpcEndpoint: string; /** * Submission authority for the `setEnvironments` extrinsic. Leave unset to * use the shared per-account queue (which already prevents nonce collisions * with the deploy that spawned this). Pass the deploy's queue to share one * instance (needed only for a custom/advanced queue). */ queue?: TransactionQueue; /** Persistent ECDH keypair storage. Defaults to in-memory. */ keyStore?: KeyStore; /** * Max attempts to fetch processor pubKeys before throwing. * Default: 20 (≈10 minutes at the default delay). */ maxRetries?: number; /** Delay between retry attempts in ms. Default: 30_000. */ retryDelayMs?: number; /** * Absolute timestamp (ms epoch). If `Date.now() >= abortIfPastStartMs` * before processors have published their pubKeys, the call aborts with * a descriptive error. Callers typically pass `startTime - 60_000` so * the helper bails once env vars can no longer reach the processor in * time. Leave unset to disable the time-based escape. */ abortIfPastStartMs?: number; /** Optional debug logger. */ logger?: Logger; } export declare const setEnvVars: (job: Job & { envVars?: EnvVar[]; }, options: SetEnvVarsOptions) => Promise<{ hash?: string; }>; //# sourceMappingURL=set-env-vars.d.ts.map