import type { OrgBus } from './bus.js'; export interface DroppedWriteRoot { path: string; reason: string; } export interface CodexWriteRoots { roots: string[]; dropped: DroppedWriteRoot[]; } export interface CodexWriteRootsCtx { allowWrite?: string[]; denyWrite?: string[]; cwd: string; orgRoot?: string; home: string; env: NodeJS.ProcessEnv; } export declare function codexWriteRoots(ctx: CodexWriteRootsCtx): CodexWriteRoots; /** The writable roots for one codex session, with an audit event for the * grant and for every entry dropped. Undefined when there is nothing to add. */ export declare function codexSessionWriteRoots(bus: OrgBus, roleId: string, ctx: CodexWriteRootsCtx): string[] | undefined; //# sourceMappingURL=codex-write-roots.d.ts.map