/// <reference types="node" />
import { URL } from 'url';
export declare function base64ToUrlSafe(v: string): string;
export declare function generateAccessTokenV2(accessKey: string, secretKey: string, requestURI: string, requestMethod: string, contentType?: string, requestBody?: string): string;
export interface UploadPolicy {
    scope: string;
    deadline: number;
}
export declare function newUploadPolicy(bucket: string, key?: string, deadline?: Date): UploadPolicy;
export declare function makeUploadToken(accessKey: string, secretKey: string, uploadPolicy: UploadPolicy): string;
export declare function signPrivateURL(accessKey: string, secretKey: string, baseURL: URL, deadline?: Date): URL;
//# sourceMappingURL=kodo-auth.d.ts.map