@nostr-dev-kit/ndk-mobile
Version:
NDK Mobile
14 lines • 706 B
TypeScript
import type { NDKEventId, NDKNutzapState } from "@nostr-dev-kit/ndk";
import type { NDKCacheAdapterSqlite } from "./index.js";
type QueryDetails = {
query: string;
params: any[];
};
/**
* Prepares the query and parameters to update the state of a nutzap in the monitor state table.
* This function is bound to the NDKCacheAdapterSqlite instance.
* @returns QueryDetails object containing the SQL query and parameters, or null if no update is needed or adapter not ready.
*/
export declare function prepareNutzapStateUpdate(this: NDKCacheAdapterSqlite, id: NDKEventId, stateChange: Partial<NDKNutzapState>): Promise<QueryDetails | null>;
export {};
//# sourceMappingURL=nutzap-state-set.d.ts.map