import type { Database as DatabaseType } from "better-sqlite3"; export declare function registerWorkItemIdentityFunctions(db: DatabaseType): void; export interface WorkItemAllocationClaim { id: string; prefix: string; ordinal: number; /** One-time raw claim. It is never persisted. */ rawClaim: string; } /** Commit the burn independently; a later failed create permanently leaves a gap. */ export declare function allocateWorkItemId(db: DatabaseType, now?: string, prefix?: string): WorkItemAllocationClaim; /** @internal test fixture builder — v1 semantics, do not use in product code. */ export declare function allocateWorkItemIdV1ForTest(db: DatabaseType, now?: string, companyName?: unknown, companyPrefix?: unknown): WorkItemAllocationClaim; export declare function useWorkItemAllocationClaim(db: DatabaseType, claim: WorkItemAllocationClaim, fn: () => T): T; //# sourceMappingURL=id-allocator.d.ts.map