UNPKG

@bigmi/core

Version:

TypeScript library for Bitcoin apps.

11 lines (10 loc) 904 B
import type { PublicActions } from '../clients/decorators/public.js'; import type { WalletActions } from '../clients/decorators/wallet.js'; import type { UTXOSchema } from '../transports/types.js'; import type { Account } from '../types/account.js'; import type { Chain } from '../types/chain.js'; import type { Client } from '../types/client.js'; import type { Transport } from '../types/transport.js'; export declare function getAction<transport extends Transport, chain extends Chain | undefined, account extends Account | undefined, rpcSchema extends UTXOSchema | undefined, extended extends { [key: string]: unknown; }, client extends Client<transport, chain, account, rpcSchema, extended>, parameters, returnType>(client: client, actionFn: (_: any, parameters: parameters) => returnType, name: keyof PublicActions | keyof WalletActions | (string & {})): (parameters: parameters) => returnType;