import BigNumber from 'bignumber.js'; import { HistoricInstruction, VenueDetails } from '../../../api/entities/Venue/types'; import { Account, Context, Entity, Instruction } from '../../../internal'; import { AddInstructionParams, AddInstructionsParams, GroupedInstructions, ModifyVenueParams, NumberedPortfolio, ProcedureMethod, ResultSet, UpdateVenueSignersParams } from '../../../types'; export interface UniqueIdentifiers { id: BigNumber; } /** * @hidden */ export declare function addInstructionTransformer([instruction]: Instruction[]): Instruction; /** * @hidden */ export declare function createPortfolioTransformer([portfolio]: NumberedPortfolio[]): NumberedPortfolio; /** * Represents a Venue through which settlements are handled */ export declare class Venue extends Entity { /** * @hidden * Check if a value is of type {@link UniqueIdentifiers} */ static isUniqueIdentifiers(identifier: unknown): identifier is UniqueIdentifiers; /** * identifier number of the Venue */ id: BigNumber; /** * @hidden */ constructor(identifiers: UniqueIdentifiers, context: Context); /** * Determine whether this Venue exists on chain */ exists(): Promise; /** * Retrieve information specific to this Venue */ details(): Promise; /** * Retrieve all pending and failed Instructions in this Venue */ getInstructions(): Promise>; /** * Fetch instructions from the chain */ private fetchInstructions; /** * Retrieve all Instructions that have been associated with this Venue instance * * @param opts.size - page size * @param opts.start - page offset * * @note uses the middleware V2 * @note supports pagination */ getHistoricalInstructions(opts?: { size?: BigNumber; start?: BigNumber; }): Promise>; /** * Get all signers allowed by this Venue. * Only these signers are allowed to affirm off-chain instructions */ getAllowedSigners(): Promise; /** * Get the number of signers allowed by this Venue */ getSignerCount(): Promise; /** * Creates a settlement Instruction in this Venue * * @note required role: * - Venue Owner */ addInstruction: ProcedureMethod; /** * Creates a batch of settlement Instructions in this Venue * * @note required role: * - Venue Owner */ addInstructions: ProcedureMethod; /** * Modify description and type * * @note required role: * - Venue Owner */ modify: ProcedureMethod; /** * Adds a list of signers allowed to sign receipts for this Venue * * @note required role: * - Venue Owner * * @throws if one or more specified signers are already added to the Venue */ addSigners: ProcedureMethod; /** * Adds a list of signers allowed to sign receipts for this Venue * * @note required role: * - Venue Owner * * @throws if one or more specified signers are already added to the Venue */ removeSigners: ProcedureMethod; /** * Return the Venue's ID */ toHuman(): string; } //# sourceMappingURL=index.d.ts.map