/** * Manages agent output ID allocation to ensure uniqueness. * * Each allocated ID gets a numeric prefix based on allocation order. * If configured with a parent prefix, the numeric prefix is appended after * the parent (e.g., "0-Parent.0-Child"). * On resume, scans existing files to find the next available index. */ export declare class AgentOutputManager { #private; constructor(getArtifactsDir: () => string | null, options?: { parentPrefix?: string; }); /** * Allocate a unique ID with numeric prefix. * * @param id Requested ID (e.g., "AuthProvider") * @returns Unique ID with prefix (e.g., "0-AuthProvider") */ allocate(id: string): Promise; /** * Allocate unique IDs for a batch of tasks. * * @param ids Array of requested IDs * @returns Array of unique IDs in same order */ allocateBatch(ids: string[]): Promise; /** * Get the next ID that would be allocated (without allocating). */ peekNextIndex(): Promise; /** * Reset state (primarily for testing). */ reset(): void; }