import { PolymeshPrimitivesAuthorization } from '../../../../../node_modules/@polymeshassociation/polymesh-types/polkadot/types-lookup'; import BigNumber from 'bignumber.js'; import { AuthorizationRequest, Namespace } from '../../../../internal'; import { AuthorizationStatusEnum, AuthTypeEnum } from '../../../../middleware/types'; import { AuthorizationType, ResultSet, Signer, SignerValue } from '../../../../types'; /** * Handles all Authorization related functionality */ export declare class Authorizations extends Namespace { /** * Fetch all pending Authorization Requests for which this Signer is the target * * @param opts.type - fetch only authorizations of this type. Fetches all types if not passed * @param opts.includeExpired - whether to include expired authorizations. Defaults to true */ getReceived(opts?: { type?: AuthorizationType; includeExpired?: boolean; }): Promise; /** * Retrieve a single Authorization Request targeting this Signer by its ID * * @throws if there is no Authorization Request with the passed ID targeting this Signer */ getOne(args: { id: BigNumber; }): Promise; /** * @hidden * * Create an array of AuthorizationRequests from an array of on-chain Authorizations */ protected createAuthorizationRequests(auths: { auth: PolymeshPrimitivesAuthorization; target: SignerValue; }[]): AuthorizationRequest[]; /** * Fetch all historical Authorization Requests for which this Signer is the target * * @param opts.type - fetch only authorizations of this type. Fetches all types if not passed * @param opts.status - fetch only authorizations with this status. Fetches all statuses if not passed * @param opts.size - page size * @param opts.start - page offset * * @note supports pagination * @note uses the middlewareV2 */ getHistoricalAuthorizations(opts?: { status?: AuthorizationStatusEnum; type?: AuthTypeEnum; size?: BigNumber; start?: BigNumber; }): Promise>; } //# sourceMappingURL=Authorizations.d.ts.map