stencil-inline-svg
Version:
A Stenciljs plugin to insert inline SVGs into components
14 lines (13 loc) • 536 B
TypeScript
/**
* Copied and adapted from @stencil/sass
* https://github.com/ionic-team/stencil-sass
*/
export declare function usePlugin(fileName: string): boolean;
/**
* If the sourceText is a base64 string returned by
* rollup imagePlugin, remove the export part of the
* string and decode the base64 value
*
* @param sourceText - a rollup imagePlugin export string in the format const img = 'data:image/svg+xml;base64,...'; export default img;
*/
export declare function decodeBase64SourceText(sourceText: string): string | false;