import type { AppPlugin } from "../..";
import { s } from "bknd/utils";
/**
 * check RequestInitCfPropertiesImage
 */
declare const schema: s.ObjectSchema<{
    readonly dpr: s.Schema<s.ISchemaOptions, number | undefined, number | undefined>;
    readonly fit: s.Schema<s.ISchemaOptions, "scale-down" | "contain" | "cover" | "crop" | "pad" | undefined, "scale-down" | "contain" | "cover" | "crop" | "pad" | undefined>;
    readonly format: s.Schema<s.ISchemaOptions, "jpeg" | "webp" | "avif" | "json" | "auto" | "baseline-jpeg" | undefined, "jpeg" | "webp" | "avif" | "json" | "auto" | "baseline-jpeg" | undefined>;
    readonly height: s.Schema<s.ISchemaOptions, number | undefined, number | undefined>;
    readonly width: s.Schema<s.ISchemaOptions, number | undefined, number | undefined>;
    readonly metadata: s.Schema<s.ISchemaOptions, "none" | "keep" | "copyright" | undefined, "none" | "keep" | "copyright" | undefined>;
    readonly quality: s.Schema<s.ISchemaOptions, number | undefined, number | undefined>;
}, s.IObjectOptions>;
type ImageOptimizationSchema = s.Static<typeof schema>;
export type CloudflareImageOptimizationOptions = {
    accessUrl?: string;
    resolvePath?: string;
    explain?: boolean;
    defaultOptions?: ImageOptimizationSchema;
    fixedOptions?: ImageOptimizationSchema;
    cacheControl?: string;
};
export declare function cloudflareImageOptimization({ accessUrl, resolvePath, explain, defaultOptions, fixedOptions, }?: CloudflareImageOptimizationOptions): AppPlugin;
export {};
