import { ConvexClient } from "convex/browser"; export declare function createConvexClient(): ConvexClient; /** * Helper function to subscribe to a Convex query. * * @param query - The query function reference (e.g., api.scenes.getById) * @param args - Arguments to pass to the query * @param callback - Callback function that receives the query result whenever it updates * @returns Unsubscribe function that can be called to stop the subscription * * @example * ```typescript * const unsubscribe = subscribeToQuery( * api.scenes.getById, * { id: "scene123" }, * (scene) => { * console.log("Scene updated:", scene); * } * ); * * // Later, to unsubscribe: * unsubscribe(); * ``` */ export declare function subscribeToQuery, Result>(query: any, // Query reference from api args: Args, callback: (result: Result) => void): () => void; /** * Helper function to run a Convex query once and return the result. * * @param query - The query function reference (e.g., api.scenes.listMyScenes) * @param args - Arguments to pass to the query * @returns Promise that resolves with the query result * * @example * ```typescript * const scenes = await queryOnce(api.scenes.listMyScenes, {}); * ``` */ export declare function queryOnce, Result>(query: any, args: Args): Promise; /** * Helper function to run a Convex mutation once and return the result. * * @param mutation - The mutation function reference (e.g. api.scenes.update) * @param args - Arguments to pass to the mutation * @returns Promise that resolves with the mutation result */ export declare function mutateOnce, Result>(mutation: any, args: Args): Promise;