import type { CodexCredentialDelivery } from "@skaile/workspaces/types"; import type { AgentConfig, CodexManagedRuntimeOptions } from "../types.js"; /** Session-owned state lock and account-bound native resume metadata; never stores credentials. */ export declare function prepareCodexInstance(config: AgentConfig, options: CodexManagedRuntimeOptions, credential: CodexCredentialDelivery): { root: string; stateRoot: string; cwd: string; home: string; instructionFile: string; bindThread: (threadId: string) => void; release: () => void; setToolInstructions: (text: string) => void; }; /** A replacement environment; managed auth never reads or mutates ambient process.env. */ export declare function codexInstanceEnvironment(input: Record, home: string): Record; //# sourceMappingURL=instance-state.d.ts.map