/** * TODO: possibly add an allow-list for remotes */ export interface ValidURIOptions { /** allow data: uri (default true) */ data: boolean; /** allow same-origin (default true) */ same_origin: boolean; /** allow remote (default false) */ remote: boolean; } /** * check if this resource is a valid URI. by default we only * allow data: and same-origin URIs, but you can override that * with a flag. * * this assumes we have a document (and location) so it should * only be called from browser context. */ export declare const ValidateURI: (resource: string, options?: Partial) => string | undefined;