// Copyright 2017 - 2026 will Farrell, Luciano Mammino, and Middy contributors. // SPDX-License-Identifier: MIT import type { S3Client, S3ClientConfig } from "@aws-sdk/client-s3"; import type middy from "@middy/core"; import type { Options as MiddyOptions } from "@middy/util"; import type { Context as LambdaContext } from "aws-lambda"; export type ParamType = string & { __returnType?: T }; export declare function s3ObjectResponseParam(name: string): ParamType; export interface S3ObjectResponseOptions extends Pick< MiddyOptions, | "AwsClient" | "awsClientOptions" | "awsClientAssumeRole" | "awsClientCapture" | "disablePrefetch" > {} export type Context = LambdaContext & { s3ObjectFetch: Promise | undefined; }; declare function s3ObjectResponse( options?: S3ObjectResponseOptions, ): middy.MiddlewareObj; export declare function s3ObjectResponseValidateOptions( options?: Record, ): void; export default s3ObjectResponse;