import type { Kysely } from 'kysely'; import type { PiecesItemsInsertable, PiecesItemsUpdateable } from '../database/tables/pieces_items.schema.js'; import type { LuzzleTables } from '../database/tables/index.js'; declare function updateItem(db: Kysely, file: string, data: PiecesItemsUpdateable): Promise; declare function insertItem(db: Kysely, data: PiecesItemsInsertable): Promise<{ id: string; file_path: string; date_added: number; date_updated: number | null; type: string; note_markdown: string; frontmatter_json: string; assets_json_array: string | undefined; } | undefined>; declare function selectItem(db: Kysely, file?: string): Promise<{ id: string; file_path: string; date_added: number; date_updated: number | null; type: string; note_markdown: string; frontmatter_json: string; assets_json_array: string | undefined; } | undefined>; declare function selectItems(db: Kysely, where?: { type?: string; asset?: string; }): Promise<{ id: string; file_path: string; date_added: number; date_updated: number | null; type: string; assets_json_array: string | undefined; }[]>; declare function selectItemAssets(db: Kysely): Promise; declare function deleteItem(db: Kysely, file: string): Promise; declare function deleteItems(db: Kysely, files: string[]): Promise; export { deleteItem, deleteItems, selectItem, selectItems, updateItem, insertItem, selectItemAssets };