import type { Command } from '@oclif/core'; import { IndexDatabase } from '../../db/database.js'; /** * Resolve the database path from the flag value. * Priority: explicit flag > SQUINT_DB_PATH env var > walk-up discovery. */ export declare function resolveDbPath(dbPath: string | undefined, command: Command): string; /** * Open a database, checking that it exists first. * Throws Command.error() if the database doesn't exist or can't be opened. */ export declare function openDatabase(dbPath: string | undefined, command: Command): Promise; /** * Execute a function with a database connection, ensuring it's closed afterward. * Combines database opening and try/finally pattern. */ export declare function withDatabase(dbPath: string | undefined, command: Command, fn: (db: IndexDatabase) => Promise): Promise; //# sourceMappingURL=db-helper.d.ts.map