Urara-Blog/node_modules/.pnpm-store/v3/files/d6/d0693d2ef44d3a63942a013311b07e4a87d7f819dc676767f6aeca5ffadb99c7396fed98f4abadd3a30dc6f3be42d4a50acfb9a041e9a4d3a95850bf6ea8af
2022-08-14 01:14:53 +08:00

32 lines
971 B
Text

import { Extractor, VariantObject, Preset } from '@unocss/core';
interface TagifyOptions {
/**
* The prefix to use for the tagify variant.
*/
prefix?: string;
/**
* Tags excluded from processing.
* @default ['b', /^h\d+$/, 'table']
*/
excludedTags?: (string | RegExp)[];
/**
* Extra CSS properties to apply to matched rules
*/
extraProperties?: Record<string, string> | ((matched: string) => Partial<Record<string, string>>);
/**
* Enable default extractor
* @default true
*/
defaultExtractor?: boolean;
}
declare const MARKER = "__TAGIFY__";
declare const htmlTagRE: RegExp;
declare const extractorTagify: (options: TagifyOptions) => Extractor;
declare const variantTagify: (options: TagifyOptions) => VariantObject;
declare function tagifyPreset(options?: TagifyOptions): Preset;
export { MARKER, TagifyOptions, tagifyPreset as default, extractorTagify, htmlTagRE, variantTagify };