import { type ConeConfigDelta, type ConeConfigIndex } from '../cone-config/index.js'; import type { Registry } from '../registry.js'; import type { SandboxSubstrate } from '../substrate.js'; import type { ResumeResult } from '../types.js'; export interface ResumeConeDeps { substrate: SandboxSubstrate; registry: Registry; } export interface ResumeConeOpts { query: string; localSliccVersion: string; /** Optional: if provided, written to /slicc/secrets.env AFTER substrate.connect * and BEFORE the leader-restart kick. Both CLI (cloud/resume.ts) and worker * (cloud-sessions-do.ts) pass this unconditionally now to inject a fresh IMS bearer. */ refreshSecretsContents?: string; /** Optional: merge delta into existing cone-config.json + secrets.env. */ coneConfigDelta?: ConeConfigDelta; pollIntervalMs?: number; pollTimeoutMs?: number; /** Skip the state check (NOT_FOUND + ALREADY_RUNNING). Used by the worker * after doing atomic cap-check + state-flip under DO lock. */ skipStateCheck?: boolean; } /** * Merge `delta` over the existing files; returns new file contents + names index. * When `coneConfigJson` is null (a pre-feature cone), synthesizes a degenerate * base from secrets.env. */ export declare function applyConeConfigDelta(coneConfigJson: string | null, secretsEnv: string, delta: ConeConfigDelta): { coneConfigJson: string; secretsEnv: string; index: ConeConfigIndex; }; export declare function resumeCone(deps: ResumeConeDeps, opts: ResumeConeOpts): Promise; //# sourceMappingURL=resume.d.ts.map