import type { App } from "../core/app.js";
import { RequestEvent } from "../core/event_request.js";
type SafeLookup = (hostname: string, options: {
    all: true;
    verbatim: true;
}) => Promise<Array<{
    address: string;
    family: number;
}>>;
type SafeFetch = (input: string, init?: RequestInit) => Promise<Response>;
type SafeFileFromURLOptions = {
    lookup?: SafeLookup;
    fetch?: SafeFetch;
    maxBodySize?: number;
    maxRedirects?: number;
};
export declare function recordAuthWithOAuth2(app: App, event: RequestEvent): Promise<Response>;
export declare function safeFileFromURL(signal: AbortSignal | null, url: string, options?: SafeFileFromURLOptions): Promise<import("../tools/filesystem/file.js").File>;
export {};
