kubo-rpc-client
Version:
A client library for the Kubo RPC API
19 lines (15 loc) • 509 B
text/typescript
import { createProvideStat } from './stat.ts'
import type { ProvideStatOptions, ProvideStats } from './types.ts'
import type { HTTPRPCClient } from '../lib/core.ts'
export type { ProvideStatOptions, ProvideStats } from './types.ts'
export interface ProvideAPI {
/**
* Return statistics about the provider system
*/
stat(options?: ProvideStatOptions): Promise<ProvideStats>
}
export function createProvide (client: HTTPRPCClient): ProvideAPI {
return {
stat: createProvideStat(client)
}
}