import { assertNetworkTargetAllowed, createNetworkGuardedFetch, } from "@steipete/summarize-core/content";
const TARGET_LABEL = "URL fetch target";
export async function assertDaemonUrlFetchAllowed(rawUrl, options) {
    await assertNetworkTargetAllowed(rawUrl, {
        targetLabel: TARGET_LABEL,
        lookup: options?.lookup,
    });
}
export function createDaemonUrlFetchGuard(fetchImpl, options = {}) {
    return createNetworkGuardedFetch(fetchImpl, {
        targetLabel: TARGET_LABEL,
        lookup: options.lookup,
        pinnedFetchImpl: options.pinnedFetchImpl,
    });
}
//# sourceMappingURL=url-fetch-guard.js.map