import { AdSet, Campaign, CredentialDefinition, EntityId, HexString } from '@moojo/protocol-core'; import { PrivateKey } from '@moojo/protocol-crypto'; import { SdkOptions, SdkOverrides } from '@moojo/sdk-core'; export declare class AdManagerSdk { private readonly logger; private readonly publicKey; private readonly credReader; private readonly campaignReader; private readonly campaignWriter; private readonly adBudgetReader; private readonly adBudgetWriter; private constructor(); static init(key: HexString | PrivateKey, options: SdkOptions, overrides?: SdkOverrides): Promise; /** * Returns credential definition owned by specific address. */ listCredentialDefinitions(ofOwnerAddress: HexString): Promise; /** * Returns a list of all definitions across all owners. */ listAllCredentialDefinitions(): Promise; /** * Updates the registry of campaigns with new campaign. */ updateCampaign(campaign: Campaign): Promise; /** * Returns a list of all active ad-sets of all owners. */ listActiveAdSets(): Promise; /** * Returns a list of all the campaigns that are owned by the current key. In the future we may support additional * selection criteria (e.g., by time frame of ad sets) */ listCampaigns(ofOwnerAddress: HexString | 'own'): Promise; /** * Returns the available budget for the given ad set ID */ getBalance(adSetId: EntityId): Promise; /** * Returns the asset address used to fund ad sets */ getFundingAsset(): Promise; /** * Initiates the funding of an ad set through the connected wallet */ fund(adSetId: EntityId, amount: number): Promise; }