/** * Network-backed media providers. * * A page never embeds a remote frame: the compiler emits no iframe at all, so a * provider reference can only ever become a poster, a link, or a direct media * source. This module defines the closed provider vocabulary and the hosts each * provider may be referenced from, so a spec cannot point a "YouTube" block at * an arbitrary domain and have the policy treat it as trusted. */ export interface EmbedProvider { readonly label: string; /** Hosts the provider serves content from; a subdomain of any of these matches. */ readonly hosts: readonly string[]; /** Short description for catalog output. */ readonly description: string; } export declare const EMBED_PROVIDERS: Readonly>; export declare const EMBED_PROVIDER_NAMES: readonly string[]; export declare function isEmbedProvider(name: string): boolean; /** * True when a remote reference belongs to the named provider. * * Matching is on the parsed hostname, so `https://youtube.com.evil.example/` * does not match `youtube.com` and a lookalike host cannot inherit a provider's * allowlist entry. */ export declare function hostMatchesProvider(provider: string, reference: string): boolean; /** True when the reference belongs to any provider in the allowlist. */ export declare function hostMatchesAnyProvider(providers: readonly string[], reference: string): boolean; //# sourceMappingURL=providers.d.ts.map