convex
Version:
Client for the Convex Cloud
26 lines • 997 B
TypeScript
import { QueryId, QuerySetModification, Authenticate } from "./protocol.js";
import { QueryToken } from "./udf_path_utils.js";
export declare class LocalSyncState {
private nextQueryId;
private querySetVersion;
private readonly querySet;
private readonly queryIdToToken;
private identityVersion;
private auth?;
constructor();
subscribe(udfPath: string, args: any[]): {
queryToken: QueryToken;
modification: QuerySetModification | null;
unsubscribe: () => QuerySetModification | null;
};
queryId(udfPath: string, args: any[]): QueryId | null;
setAuth(value: string): Authenticate;
setAdminAuth(value: string): Authenticate;
clearAuth(): Authenticate;
queryPath(queryId: QueryId): string | null;
queryArgs(queryId: QueryId): any[] | null;
queryToken(queryId: QueryId): string | null;
restart(): [QuerySetModification, Authenticate?];
private removeSubscriber;
}
//# sourceMappingURL=local_state.d.ts.map