import { BeforeRequestContext, BeforeRequestHook } from "./types.js";
export declare class CloudinaryAuthHook implements BeforeRequestHook {
    private readonly cloudConfig;
    constructor();
    beforeRequest(hookCtx: BeforeRequestContext, request: Request): Promise<Request>;
    paramsFromQuery(searchParams: URLSearchParams): string[];
    signQueryOnlyRequest(request: Request, apiKey: string, apiSecret: string, queryParams: string[]): Promise<Request>;
    computeSignature(params: string[], apiSecret: string): Promise<{
        signature: string;
        timestamp: number;
    }>;
    paramsToSignFormData(form: FormData): string[];
    paramsToSignJson(json: Record<string, string>): string[];
    preprocessJsonRequest(request: Request): Promise<any>;
    signJsonRequest(request: Request, apiKey: string, apiSecret: string, queryParams?: string[], preprocessedBody?: any): Promise<Request>;
    private convertFileToDataUri;
    signFormDataRequest(request: Request, apiKey: string, apiSecret: string, queryParams?: string[]): Promise<Request>;
    SIGNED_ACTIONS: string[];
    SIGNED_PATHS: string[];
}
//# sourceMappingURL=cloudinaryAuthHook.d.ts.map