@test-org122/hypernet-core
Version:
Hypernet Core. Represents the SDK for running the Hypernet Protocol.
31 lines • 1.74 kB
TypeScript
import { ILinkRepository } from "@interfaces/data";
import { HypernetLink, PublicIdentifier, ResultAsync } from "@interfaces/objects";
import { CoreUninitializedError, InvalidParametersError, RouterChannelUnknownError, VectorError } from "@interfaces/objects/errors";
import { IBrowserNodeProvider, IConfigProvider, IContextProvider, IPaymentUtils, ITimeUtils, IVectorUtils } from "@interfaces/utilities";
import { ILinkUtils } from "@interfaces/utilities/ILinkUtils";
/**
* Provides methods for retrieving Hypernet Links.
*/
export declare class VectorLinkRepository implements ILinkRepository {
protected browserNodeProvider: IBrowserNodeProvider;
protected configProvider: IConfigProvider;
protected contextProvider: IContextProvider;
protected vectorUtils: IVectorUtils;
protected paymentUtils: IPaymentUtils;
protected linkUtils: ILinkUtils;
protected timeUtils: ITimeUtils;
/**
* Get an instance of the VectorLinkRepository
*/
constructor(browserNodeProvider: IBrowserNodeProvider, configProvider: IConfigProvider, contextProvider: IContextProvider, vectorUtils: IVectorUtils, paymentUtils: IPaymentUtils, linkUtils: ILinkUtils, timeUtils: ITimeUtils);
/**
* Get all Hypernet Links for this client
*/
getHypernetLinks(): ResultAsync<HypernetLink[], RouterChannelUnknownError | CoreUninitializedError | VectorError | InvalidParametersError>;
/**
* Given the ID of the link, return it.
* @param counterpartyId The ID of the link to retrieve
*/
getHypernetLink(counterpartyId: PublicIdentifier): ResultAsync<HypernetLink, RouterChannelUnknownError | CoreUninitializedError | VectorError | Error>;
}
//# sourceMappingURL=VectorLinkRepository.d.ts.map