/// export interface DeployOptions { apiKey: string; accountId: string; projectName: string; branch?: string; commitMessage?: string; commitHash?: string; } export interface DeploymentFile { filename: string; content: Buffer | (() => Promise); /** Leave blank to use mime on npm to get the type. */ contentType?: string; /** Precompute yourself with `computeHash` or leave blank. */ hash?: string; } export interface Deployment { id: string; url: string; hashes: Record; } export interface DeploymentOptions { branch?: string; commitMessage?: string; commitHash?: string; headers?: string; redirects?: string; routes?: string; worker?: string; concurrency?: number; log?: (msg: string) => unknown; } export interface CloudflarePagesDirectUploaderOptions { apiKey: string; accountId: string; projectName: string; } export declare class CloudflarePagesDirectUploader { private config; constructor(config: CloudflarePagesDirectUploaderOptions); deployDirectory(directoryPath: string, options?: DeploymentOptions): Promise; deployFiles(files: DeploymentFile[], options?: DeploymentOptions): Promise; } export default CloudflarePagesDirectUploader; export declare function computeHash(content: Buffer, filename: string): string;