/**
 * Task ID sequence management core module.
 * @task T4538
 * @epic T4454
 */
import { type DataAccessor } from '../store/data-accessor.js';
/** Show current sequence state. */
export declare function showSequence(cwd?: string): Promise<Record<string, unknown>>;
/** Check sequence integrity. */
export declare function checkSequence(cwd?: string, accessor?: DataAccessor): Promise<Record<string, unknown>>;
/** Repair result with proper typing. */
export interface RepairResult {
    repaired: boolean;
    message: string;
    counter: number;
    oldCounter?: number;
    newCounter?: number;
}
/** Repair sequence if behind. */
export declare function repairSequence(cwd?: string, accessor?: DataAccessor): Promise<RepairResult>;
/**
 * Atomically allocate the next task ID via SQLite.
 *
 * Uses BEGIN IMMEDIATE to guarantee no two concurrent callers
 * receive the same ID, even across processes (WAL mode).
 *
 * Falls back to repair+retry if the sequence counter is behind
 * the actual max task ID (e.g., stale counter from installations
 * that never incremented it).
 *
 * @task T5184
 */
export declare function allocateNextTaskId(cwd?: string, retryCount?: number): Promise<string>;
//# sourceMappingURL=index.d.ts.map