import type { Asset, AssetGraph } from 'assetgraph'; import type { VariationAxes, TracedFontUsage } from './types/shared'; type FontBuffer = Buffer | Uint8Array; interface AssetTextWithProps { fontUsages: TracedFontUsage[]; } type ExtraSubsetCacheOptions = Record; declare function subsetCacheKey(fontBuffer: FontBuffer, text: string, targetFormat: string, variationAxes: VariationAxes, featureGlyphIds: number[] | undefined, extraOptions?: ExtraSubsetCacheOptions | undefined): string; declare class SubsetDiskCache { private _cacheDir; private _console; private _ensured?; private _warnedWrite; constructor(cacheDir: string, console: Console | null | undefined); private _ensureDir; get(key: string): Promise; private _atomicWrite; set(key: string, buffer: Buffer): Promise; } export declare function getSubsetPromiseId(fontUsage: TracedFontUsage, format: string, variationAxes?: VariationAxes | null): string; export declare function getSubsetsForFontUsage(assetGraph: AssetGraph, htmlOrSvgAssetTextsWithProps: AssetTextWithProps[], formats: string[], seenAxisValuesByFontUrlAndAxisName: Map>>, cacheDir?: string | null, console?: Console | null, debug?: boolean, signal?: AbortSignal): Promise>; export { subsetCacheKey as _subsetCacheKey, SubsetDiskCache as _SubsetDiskCache, }; //# sourceMappingURL=subsetGeneration.d.ts.map