import { Account, AuthorizationRequest, Procedure } from "../../internal"; import { ProcedureAuthorization } from "../../types/internal"; /** * @hidden */ export interface ConsumeJoinOrRotateAuthorizationParams { authRequest: AuthorizationRequest; accept: boolean; } export interface Storage { signingAccount: Account; calledByTarget: boolean; } /** * @hidden * * Consumes JoinIdentity, RotatePrimaryKey and RotatePrimaryKeyToSecondaryKey Authorizations */ export declare function prepareConsumeJoinOrRotateAuthorization(this: Procedure, args: ConsumeJoinOrRotateAuthorizationParams): Promise; /** * @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