import BigNumber from 'bignumber.js'; import { Context, Portfolio } from '../../internal'; import { AuthorizationRequest, EventIdentifier, ProcedureMethod, RenamePortfolioParams, SetCustodianParams } from '../../types'; export interface UniqueIdentifiers { did: string; id: BigNumber; } /** * Represents a numbered (non-default) Portfolio for an Identity */ export declare class NumberedPortfolio extends Portfolio { /** * @hidden * Check if a value is of type {@link UniqueIdentifiers} */ static isUniqueIdentifiers(identifier: unknown): identifier is UniqueIdentifiers; /** * Portfolio identifier number */ id: BigNumber; /** * @hidden */ constructor(identifiers: UniqueIdentifiers, context: Context); /** * Rename portfolio * * @note Only the owner is allowed to rename the Portfolio. */ modifyName: ProcedureMethod; /** * Return the Portfolio name */ getName(): Promise; /** * Retrieve the identifier data (block number, date and event index) of the event that was emitted when this Portfolio was created * * @note uses the middlewareV2 * @note there is a possibility that the data is not ready by the time it is requested. In that case, `null` is returned */ createdAt(): Promise; /** * Return whether this Portfolio exists */ exists(): Promise; /** * Send an invitation to an Identity to assign it as custodian for this Numbered Portfolio * * @note this will create an {@link AuthorizationRequest | Authorization Request} which has to be accepted by the `targetIdentity`. * An {@link api/entities/Account!Account | Account} or {@link api/entities/Identity!Identity | Identity} can fetch its pending Authorization Requests by calling {@link api/entities/common/namespaces/Authorizations!Authorizations.getReceived | authorizations.getReceived}. * Also, an Account or Identity can directly fetch the details of an Authorization Request by calling {@link api/entities/common/namespaces/Authorizations!Authorizations.getOne | authorizations.getOne} * * @note required role: * - Portfolio Custodian */ setCustodian: ProcedureMethod; } //# sourceMappingURL=NumberedPortfolio.d.ts.map