import type { MDSResponse } from '../../types.js'; import type { SendNoSignParams, SendParams, SendPollParams, SendSignParams, SendFileParams, MultiSigCreateParams, MultiSigListParams, MultiSigSpendParams, MultiSigSignParams, MultiSigViewParams, MultiSigPostParams, MultiSigParams, MultiSigGetKeyParams } from './params.js'; import type { ReturnTypeMultiSig, SendNoSign, SendPoll, SendTxPow, Transaction } from './response.js'; /** * Send function types */ type SendCallback = (data: MDSResponse) => void; export type SendFunc = (args: { params: SendParams; }, callback?: SendCallback) => Promise>; /** * SendPoll function types */ type SendPollCallback = (data: MDSResponse) => void; export type SendPollFunc = (args: { params: SendPollParams; }, callback?: SendPollCallback) => Promise>; /** * SendNoSign function types */ type SendNoSignCallback = (data: MDSResponse) => void; export type SendNoSignFunc = (args: { params: SendNoSignParams; }, callback?: SendNoSignCallback) => Promise>; /** * SendView function types */ type SendViewCallback = (data: MDSResponse) => void; export type SendViewFunc = (args: { params: SendFileParams; }, callback?: SendViewCallback) => Promise>; /** * SendSign function types */ type SendSignCallback = (data: MDSResponse) => void; export type SendSignFunc = (args: { params: SendSignParams; }, callback?: SendSignCallback) => Promise>; /** * SendPost function types */ type SendPostCallback = (data: MDSResponse) => void; export type SendPostFunc = (args: { params: SendFileParams; }, callback?: SendPostCallback) => Promise>; /** * MultiSig function types */ type ActionParamMapMultiSig = { readonly create: MultiSigCreateParams; readonly list: MultiSigListParams; readonly spend: MultiSigSpendParams; readonly sign: MultiSigSignParams; readonly view: MultiSigViewParams; readonly post: MultiSigPostParams; readonly getkey: MultiSigGetKeyParams; }; type MultiSigParamType = T extends { action: keyof ActionParamMapMultiSig; } ? ActionParamMapMultiSig[T['action']] : T; type MultiSigFuncParams = [ { params: MultiSigParamType; }, MultiSigCallback? ]; type MultiSigCallback = (data: ReturnTypeMultiSig) => void; export type MultiSigFunc = (...args: MultiSigFuncParams) => Promise>; export {}; //# sourceMappingURL=functions.d.ts.map