import { Function as LambdaFunction, FunctionOptions } from 'aws-cdk-lib/aws-lambda';
import { IBucket } from 'aws-cdk-lib/aws-s3';
import { Construct } from 'constructs';
import { OptionalFunctionProps } from './generated-structs';
import type { NextjsBuild } from './NextjsBuild';
export interface NextjsImageOverrides {
    readonly functionProps?: OptionalFunctionProps;
}
export interface NextjsImageProps {
    /**
     * The S3 bucket holding application images.
     */
    readonly bucket: IBucket;
    /**
     * Override function properties.
     */
    readonly lambdaOptions?: FunctionOptions;
    /**
     * @see {@link NextjsBuild}
     */
    readonly nextBuild: NextjsBuild;
    /**
     * Override props for every construct.
     */
    readonly overrides?: NextjsImageOverrides;
}
/**
 * This lambda handles image optimization.
 */
export declare class NextjsImage extends LambdaFunction {
    constructor(scope: Construct, id: string, props: NextjsImageProps);
}
