export type NetworkPolicyMode = "none" | "package-registry-only" | "github-only" | "allowlist" | "unrestricted"; export interface PolicyFetchOptions { readonly url: string; readonly userAgent: string; readonly mode: NetworkPolicyMode; readonly allowlist?: readonly string[]; readonly etag?: string | null; readonly lastModified?: string | null; readonly timeoutMs?: number; readonly maxBytes?: number; } export declare class NetworkBlockedError extends Error { readonly url: string; readonly reason: string; constructor(url: string, reason: string); } export declare class ResponseTooLargeError extends Error { readonly url: string; readonly limitBytes: number; constructor(url: string, limitBytes: number); } export interface PolicyFetchResult { readonly status: number; readonly notModified: boolean; readonly body: string; readonly etag: string | null; readonly lastModified: string | null; } export declare function isHostBuiltInTrusted(url: URL): boolean; export declare function policyFetch(options: PolicyFetchOptions): Promise; //# sourceMappingURL=policy-fetch.d.ts.map