interface VerifyManifestOptions { /** * The URL of the manifest to verify */ manifestUrl: string; /** * List of allowed domains (without protocol) * If empty or contains "*", all domains are allowed */ allowedDomains?: string[]; /** * Whether to allow all domains (overrides allowedDomains if true) * @default process.env.NODE_ENV !== "production" */ allowAllDomains?: boolean; } interface VerifyManifestResult { /** * Whether the manifest URL is allowed */ allowed: boolean; /** * The normalized manifest URL */ url: string; /** * Error message if verification failed */ error?: string; } /** * Verifies if a manifest URL is allowed based on domain restrictions * @param options Verification options * @returns Verification result */ declare const verifyManifestUrl: (options: VerifyManifestOptions) => VerifyManifestResult; /** * Verifies a manifest URL from environment configuration * Uses MANIFEST_ALLOWED_DOMAINS environment variable for domain restrictions * @param manifestUrl The manifest URL to verify * @returns Verification result */ declare const verifyManifestUrlFromEnv: (manifestUrl: string) => VerifyManifestResult; export { verifyManifestUrl, verifyManifestUrlFromEnv };