UNPKG

chia-agent

Version:
16 lines (15 loc) 842 B
import { bool } from "../../chia/types/_python_types_"; import { TRPCAgent } from "../../../rpc/index"; import { TDaemon } from "../../../daemon/index"; import { GetMessageType, ResType } from "../../types"; export declare const chia_solver_service = "chia_solver"; export type chia_solver_service = typeof chia_solver_service; export declare const get_state_command = "get_state"; export type get_state_command = typeof get_state_command; export type TGetStateResponse = { started: bool; }; export type WsGetStateMessage = GetMessageType<chia_solver_service, get_state_command, TGetStateResponse>; export declare function get_state<T extends TRPCAgent | TDaemon>(agent: T): Promise<ResType<T, TGetStateResponse, WsGetStateMessage>>; export type RpcSolverMessage = TGetStateResponse; export type RpcSolverMessageOnWs = WsGetStateMessage;