import * as yup from 'yup'; export type StratumMessage = { id: number; method: string; body?: unknown; }; export interface StratumMessageWithError extends Omit { error: { id: number; message: string; }; } export type MiningDisconnectMessage = { reason?: string; versionExpected?: number; bannedUntil?: number; message?: string; } | undefined; export type MiningSubscribeMessage = { version: number; name?: string; publicAddress: string; agent?: string; }; export type MiningSubmitMessageV1 = { miningRequestId: number; randomness: string; }; export type MiningSubmitMessageV2 = { miningRequestId: number; randomness: string; graffiti: string; }; export type MiningSubmitMessageV3 = { miningRequestId: number; randomness: string; }; export type MiningSubscribedMessageV1 = { clientId: number; graffiti: string; }; export type MiningSubscribedMessageV2 = { clientId: number; xn: string; }; export type MiningSubscribedMessageV3 = { clientId: number; xn: string; }; export type MiningSubmittedMessage = { id: number; result: boolean; message?: string; }; export type MiningSetTargetMessage = { target: string; }; export type MiningWaitForWorkMessage = undefined; export type MiningNotifyMessage = { miningRequestId: number; header: string; }; export type MiningGetStatusMessage = { publicAddress?: string; } | undefined; export type MiningStatusMessage = { name: string; hashRate: number; miners: number; clients: number; bans: number; sharesPending: number; addressStatus?: { publicAddress: string; connectedMiners: string[]; hashRate: number; miners: number; sharesPending: number; }; }; export declare const StratumMessageSchema: yup.ObjectSchema; export declare const StratumMessageWithErrorSchema: yup.ObjectSchema; export declare const MiningDisconnectMessageSchema: yup.ObjectSchema; export declare const MiningSubscribedMessageSchemaV1: yup.ObjectSchema; export declare const MiningSubscribedMessageSchemaV2: yup.ObjectSchema; export declare const MiningSubscribedMessageSchemaV3: yup.ObjectSchema; export declare const MiningSetTargetSchema: yup.ObjectSchema; export declare const MiningSubmittedSchema: yup.ObjectSchema; export declare const MiningNotifySchema: yup.ObjectSchema; export declare const MiningWaitForWorkSchema: yup.MixedSchema; export declare const MiningSubscribeSchema: yup.ObjectSchema; export declare const MiningSubmitSchemaV1: yup.ObjectSchema; export declare const MiningSubmitSchemaV2: yup.ObjectSchema; export declare const MiningSubmitSchemaV3: yup.ObjectSchema; export declare const MiningGetStatusSchema: yup.ObjectSchema; export declare const MiningStatusSchema: yup.ObjectSchema; //# sourceMappingURL=messages.d.ts.map