// (C) 2025-2026 GoodData Corporation
/**
 * Factory producing a typed client for interacting with the location style endpoints.
 */
export const tigerLocationStyleClientFactory = (axios) => {
    return {
        getDefaultStyle: async (params) => LocationStyleApi_GetDefaultStyle(axios, params),
        getStyles: async () => LocationStyleApi_GetStyles(axios),
        getStyleById: async (styleId, params) => LocationStyleApi_GetStyleById(axios, styleId, params),
    };
};
/**
 * Low-level request that retrieves the default MapLibre style configuration.
 */
export async function LocationStyleApi_GetDefaultStyle(axios, params) {
    const queryParams = {
        ...(params?.language === undefined ? {} : { language: params.language }),
    };
    const response = await axios.get("/api/v1/location/style", {
        params: queryParams,
    });
    return response.data;
}
/**
 * Low-level request that lists all available map styles.
 */
export async function LocationStyleApi_GetStyles(axios) {
    const response = await axios.get("/api/v1/location/styles");
    return response.data;
}
/**
 * Low-level request that retrieves the MapLibre style for a specific style ID.
 */
export async function LocationStyleApi_GetStyleById(axios, styleId, params) {
    const queryParams = {
        ...(params?.language === undefined ? {} : { language: params.language }),
    };
    const response = await axios.get(`/api/v1/location/styles/${encodeURIComponent(styleId)}`, { params: queryParams });
    return response.data;
}
//# sourceMappingURL=locationStyle.js.map