import { S3Client } from "@aws-sdk/client-s3"; /** * S3 bucket configuration */ export interface S3BucketConfig { bucketName: string; region: string; } /** * S3 bucket validation result */ export interface S3ValidationResult { hasAccess: boolean; isConfigured: boolean; hasWritePermission?: boolean; hasReadPermission?: boolean; errors: string[]; } /** * S3 bucket access validator * * Validates S3 bucket access and permissions required for the webhook integration. */ export declare class S3BucketValidator { /** * Valid AWS region patterns */ private static readonly VALID_REGIONS; /** * Validate S3 bucket access and permissions * * @param config - S3 bucket configuration * @returns Validation result with access status and errors */ static validate(config: S3BucketConfig): Promise; /** * Validate S3 bucket name format * * @param bucketName - Bucket name to validate * @returns True if bucket name is valid */ static validateBucketName(bucketName: string): boolean; /** * Validate AWS region format * * @param region - AWS region to validate * @returns True if region format is valid */ static validateRegion(region: string): boolean; /** * Check if S3 bucket exists * * @param bucketName - Name of the bucket * @param region - AWS region * @param s3Client - Optional S3 client instance * @returns True if bucket exists */ static checkBucketExists(bucketName: string, region: string, s3Client?: S3Client): Promise; /** * Test write permissions on S3 bucket * * @param bucketName - Name of the bucket * @param s3Client - S3 client instance * @returns True if write permission is granted */ private static testWritePermission; /** * Test read permissions on S3 bucket * * @param bucketName - Name of the bucket * @param s3Client - S3 client instance * @returns True if read permission is granted */ private static testReadPermission; } //# sourceMappingURL=s3-bucket-validator.d.ts.map