import type { RpgMakerDbEntry } from "../types/rpgmaker.js"; export interface CrudOperations { getAll: (projectPath: string) => Promise; getById: (projectPath: string, id: number) => Promise; create: (projectPath: string, factory: (id: number) => T) => Promise; update: (projectPath: string, id: number, fields: Partial) => Promise; delete: (projectPath: string, id: number) => Promise; search: (projectPath: string, query: string, searchFields?: (keyof T)[]) => Promise; } export declare function createCrud(filename: string, defaultFactory: (id: number) => T): CrudOperations;