import { type Client } from "@libsql/client"; import type { IAgentRegistry, IModelRegistry } from "kernl"; import { LibSQLStorage } from "../storage.js"; /** * Generate a unique database URL for each test. * Uses temp file instead of :memory: due to libsql bug with in-memory transactions. */ export declare function test_db_url(): string; export declare const THREADS_TABLE = "kernl_threads"; export declare const THREAD_EVENTS_TABLE = "kernl_thread_events"; export declare const MEMORIES_TABLE = "kernl_memories"; export declare const MIGRATIONS_TABLE = "kernl_migrations"; /** * Create a test database setup with client and storage sharing the same URL. */ export declare function create_test_db(): { client: Client; storage: LibSQLStorage; url: string; }; export declare function create_client(url?: string): Client; export declare function enable_foreign_keys(client: Client): Promise; export declare function create_storage(client: Client, url?: string): LibSQLStorage; export declare function reset_tables(client: Client): Promise; /** * Create mock registries for thread hydration tests. */ export declare function create_mock_registries(): { agents: IAgentRegistry; models: IModelRegistry; }; /** * Generate a unique ID for tests. */ export declare function testid(prefix?: string): string; //# sourceMappingURL=helpers.d.ts.map