import type { FilterObj } from 'pinejs-client-core'; import type BalenaModel from '../../balena-model.js'; export declare const getOrInsertId: (resource: string, body: AnyObject, tx?: Tx) => Promise<{ id: number; }>; export declare const getOrInsertModelId: (resource: T, body: Partial, tx?: Tx) => Promise<{ id: number; }>; export declare const updateOrInsert: (resource: string, filter: FilterObj, updateFields: AnyObject, tx?: Tx) => Promise<{ id: number; }>; export declare const updateOrInsertModel: (resource: T, filter: FilterObj, updateFields: Partial, tx?: Tx) => Promise<{ id: number; }>;