import { PatternType, PatternScope, TextTwistData, PresetConfigKey, PresetScope, StoredPatternPreset, ValidationResult, ValidationFailureReason } from './patterns.types'; import { Translations } from './translations/consts'; export declare function isCustomPatternPreset(preset: string | undefined): boolean; export declare function isValidPresetKey(value: string | undefined): value is PresetConfigKey; export declare function getPresetScope(scope: PatternScope): PresetScope; export declare function isValidPatternScope(value: unknown): value is PatternScope; export declare function getPatternFromStyles(styleProperties: Record, patternType: PatternType): string; export declare function getPatternForDisplay(value: string): string; type UsePatternsDataServiceProps = { styleProperties: Record; textTransform?: string; updateStyleProperties: (properties: Record) => void; compData: TextTwistData; updateData: (data: TextTwistData) => void; }; export declare const usePatternsDataService: ({ styleProperties, textTransform, updateStyleProperties, compData, updateData, }: UsePatternsDataServiceProps) => { updatePatterns: (params?: { patternScope?: PatternScope; patterns?: Partial>; rotationIntensity?: number; offsetIntensity?: number; preset?: StoredPatternPreset; }) => void; getRotationIntensity: () => number; getOffsetIntensity: () => number; getSelectedPreset: () => PresetConfigKey | undefined; validatePattern: (value: string | undefined, patternType: PatternType) => ValidationResult; getPatternScope: () => PatternScope; getValidationMessage: (patternType: PatternType, reason: ValidationFailureReason) => keyof Translations; getPatternForDisplay: typeof getPatternForDisplay; generatePatternHintMessage: (value: string, translatedPrefix: string) => string; }; export {};