import { Account, AuthorizationRequest, Procedure } from '../../internal'; import { ExtrinsicParams, ProcedureAuthorization, TransactionSpec } from '../../types/internal'; /** * @hidden */ export interface ConsumeJoinOrRotateAuthorizationParams { authRequest: AuthorizationRequest; accept: boolean; } export interface Storage { actingAccount: Account; calledByTarget: boolean; } /** * @hidden * * Consumes JoinIdentity, RotatePrimaryKey and RotatePrimaryKeyToSecondaryKey Authorizations */ export declare function prepareConsumeJoinOrRotateAuthorization(this: Procedure, args: ConsumeJoinOrRotateAuthorizationParams): Promise> | TransactionSpec> | TransactionSpec> | TransactionSpec>>; /** * @hidden * * - If the auth is being accepted, we check that the caller is the target * - If the auth is being rejected, we check that the caller is either the target or the issuer */ export declare function getAuthorization(this: Procedure, { authRequest, accept }: ConsumeJoinOrRotateAuthorizationParams): Promise; /** * @hidden */ export declare function prepareStorage(this: Procedure, { authRequest: { target } }: ConsumeJoinOrRotateAuthorizationParams): Promise; /** * @hidden */ export declare const consumeJoinOrRotateAuthorization: () => Procedure; //# sourceMappingURL=consumeJoinOrRotateAuthorization.d.ts.map