/** * Shared utilities for global commands */ import { type GlobalDatabase } from '../../db/global-database.js'; /** * Standard totals object for error responses. */ export declare const EMPTY_TOTALS: { readonly projects: 0; readonly files: 0; readonly items: 0; readonly methods: 0; readonly types: 0; }; /** * Open the global database, run a function, and ensure the DB is always closed. * Returns the error result if no global DB exists. */ export declare function withGlobalDb(onError: (error: string) => T, fn: (db: GlobalDatabase) => T): T; //# sourceMappingURL=global-shared.d.ts.map