/** Builds a CSS `url()` from a source, escaping it so the value cannot end the string or declaration. */ export declare const toCssUrl: (source: string) => string; /** * Whether an image source can be shown: an http(s) or blob address, an embedded image, or a * relative address (application-managed images). Anything else is never used. */ export declare const isSafeImageSource: (source?: string) => boolean; /** Returns a solid color (hex, rgb(a) or hsl(a)) when valid, otherwise undefined. */ export declare const toColorCss: (value?: string) => string | undefined; /** Returns a color with transparency, or `transparent`, when valid. Gradients and images are never valid. */ export declare const toOverlayCss: (value?: string) => string | undefined; /** * Returns a solid color (opaque or with transparency), `transparent`, a gradient, or an image as safe CSS * when valid, otherwise undefined. * Images are rebuilt from their parts so only allowed position, size, and repeat values are used. */ export declare const toBackgroundCss: (value?: string) => string | undefined; /** Whether an address resolves to http or https; relative addresses count as the page's own. */ export declare const isSafeHref: (href?: string) => boolean; //# sourceMappingURL=utils.d.ts.map