///
///
export type CloudflareCreds = {
key: string;
/** Set for legacy global API keys, which auth via X-Auth-Email/X-Auth-Key. Absent for API tokens, which auth via Authorization: Bearer. */
email?: string;
};
export declare const getCloudflareCreds: {
(): Promise;
reset(): void;
set(newValue: Promise): void;
};
export declare function cloudflareGETCall(path: string, params?: {
[key: string]: string;
}): Promise;
export declare function cloudflarePOSTCall(path: string, params: {
[key: string]: unknown;
}): Promise;
export declare function cloudflareCall(path: string, payload: Buffer, method: string): Promise;