import { StyleSetterOptions } from 'maplibre-gl'; type SetPropertyFn = (name: string, value: any, options?: StyleSetterOptions) => void; type LogErrorFn = (...args: any[]) => void; /** * Creates a shared `setStyle` function that dispatches style keys to paint or layout. * Eliminates identical setStyle implementations across all 4 layer composables. */ export declare function createSetStyle>(setPaintProperty: SetPropertyFn, setLayoutProperty: SetPropertyFn, paintKeys: readonly string[], layoutKeys: readonly string[], logError: LogErrorFn): (styleVal?: TStyle) => void; /** * Creates a shared `setVisibility` function. */ export declare function createSetVisibility(setLayoutProperty: SetPropertyFn, logError: LogErrorFn): (visibility: "visible" | "none", options?: StyleSetterOptions) => void; /** * Creates a typed property setter with try-catch error handling. * The generic keeps the caller's value type, so a setter built here has the * same signature as a hand-written one. * * @param setFn - setPaintProperty or setLayoutProperty from useCreateLayer * @param propertyName - CSS property name (e.g., 'circle-color') * @param logError - Logger error function */ export declare function createPropertySetter(setFn: SetPropertyFn, propertyName: string, logError: LogErrorFn): (value: T, options?: StyleSetterOptions) => void; export {};