import type * as detective from "@distilled.cloud/aws/detective";
import * as Binding from "alchemy/Binding";
import type * as Effect from "effect/Effect";
/**
* Runtime binding for `detective:RejectInvitation`.
*
* Rejects an open invitation into an administrator account's behavior
* graph — the decline path of the member-account invitation flow.
* Provide the implementation with
* `Effect.provide(AWS.Detective.RejectInvitationHttp)`.
* ### Responding to Invitations
* **Example:** Decline An Invitation
* ```typescript
* // init — account-level binding, no resource argument
* const rejectInvitation = yield* AWS.Detective.RejectInvitation();
*
* // runtime
* yield* rejectInvitation({ GraphArn: invitation.GraphArn! });
* ```
*
* @binding
*/
export interface RejectInvitation extends Binding.Service<
RejectInvitation,
"AWS.Detective.RejectInvitation",
() => Effect.Effect<
(
request: detective.RejectInvitationRequest,
) => Effect.Effect<detective.RejectInvitationResponse, detective.RejectInvitationError>
>
> {}
export const RejectInvitation = Binding.Service<RejectInvitation>("AWS.Detective.RejectInvitation");