import type { MDSResponse } from '../../types.js'; import type { Txn } from '../send/response.js'; import type { LogParams, TxnExportParams, TxnImportParams, TxnInputParams, TxnListParams, TxnOutputParams, TxnParams, TxnPostParams, TxnSignParams } from './params.js'; import type { Burn, Log, TxnCheck, TxnDelete, TxnExportReturnType, TxnInput, TxnPost, TxnSignReturnType } from './response.js'; /** * Burn function types */ type BurnCallback = (data: MDSResponse) => void; export type BurnFunc = (callback?: BurnCallback) => Promise>; /** * Log function types */ type LogCallback = (data: MDSResponse) => void; export type LogFunc = (args: { params: LogParams; }, callback?: LogCallback) => Promise>; /** * Txn function types */ type TxnCallback = (data: MDSResponse) => void; export type TxnFunc = (args: { params: TxnParams; }, callback?: TxnCallback) => Promise>; /** * TxnCheck function types */ type TxnCheckCallback = (data: MDSResponse) => void; export type TxnCheckFunc = (args: { params: TxnParams; }, callback?: TxnCheckCallback) => Promise>; /** * TxnDelete function types */ type TxnDeleteCallback = (data: MDSResponse) => void; export type TxnDeleteFunc = (args: { params: TxnParams; }, callback?: TxnDeleteCallback) => Promise>; /** * TxnExport function types */ type TxnExportCallback = (data: TxnExportReturnType) => void; export type TxnExportFunc = (...args: T extends { params: TxnExportParams; } ? [{ params: TxnExportParams; }, TxnExportCallback?] : [T, TxnExportCallback?]) => Promise>; /** * TxnImport function types */ type TxnImportCallback = (data: MDSResponse) => void; export type TxnImportFunc = (args: { params: TxnImportParams; }, callback?: TxnImportCallback) => Promise>; /** * TxnInput function types */ type TxnInputCallback = (data: MDSResponse) => void; export type TxnInputFunc = (args: { params: TxnInputParams; }, callback?: TxnInputCallback) => Promise>; /** * TxnList function types */ type TxnListCallback = (data: MDSResponse) => void; type TxnListFuncParams = T extends undefined ? [TxnListCallback?] : [{ params: TxnListParams; }, TxnListCallback?]; export type TxnListFunc = (...args: TxnListFuncParams) => Promise>; /** * TxnOutput function types */ type TxnOutputCallback = (data: MDSResponse) => void; export type TxnOutputFunc = (args: { params: TxnOutputParams; }, callback?: TxnOutputCallback) => Promise>; /** * TxnSign function types */ type TxnSignCallback = (data: TxnSignReturnType) => void; export type TxnSignFunc = (...args: T extends { params: TxnSignParams; } ? [{ params: TxnSignParams; }, TxnSignCallback?] : [T, TxnSignCallback?]) => Promise>; /** * TxnPost function types */ type TxnPostCallback = (data: MDSResponse) => void; export type TxnPostFunc = (args: { params: TxnPostParams; }, callback?: TxnPostCallback) => Promise>; export {}; //# sourceMappingURL=functions.d.ts.map