/** * SQLite shell-state — every leviathan's local memory. Stored at ~/.openclawd/shell.db. * Records: tail-flicks, clawd-strikes, molts, spawnlings, lifecycle events. */ import Database from 'better-sqlite3'; declare const DB_PATH: string; export declare function getShellDb(): Database.Database; export interface LeviathanRow { pubkey: string; asset_address: string | null; asset_signer_pda: string | null; name: string; creator: string; spawn_prompt: string; constitution_hash: string; shell_cid: string | null; spawned_at: number; network: string | null; } export declare function recordSpawn(row: LeviathanRow): void; export declare function recordEvent(kind: string, payload: unknown): void; export declare function getLeviathan(): LeviathanRow | null; export declare function recordSpawnling(pubkey: string, assetAddress: string, prompt: string): void; export declare function listSpawnlings(): unknown[]; export declare function recordBeach(): void; export declare function closeShellDb(): void; export { DB_PATH };