import { queryParams, type RouteQueryOptions, type RouteDefinition, type RouteFormDefinition } from './../../wayfinder'
/**
 * @see routes/client.php:41
 * @route '/currency/change'
 */
export const change = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: change.url(options),
    method: 'post',
})

change.definition = {
    methods: ["post"],
    url: '/currency/change',
} satisfies RouteDefinition<["post"]>

/**
 * @see routes/client.php:41
 * @route '/currency/change'
 */
change.url = (options?: RouteQueryOptions) => {
    return change.definition.url + queryParams(options)
}

/**
 * @see routes/client.php:41
 * @route '/currency/change'
 */
change.post = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: change.url(options),
    method: 'post',
})

    /**
 * @see routes/client.php:41
 * @route '/currency/change'
 */
    const changeForm = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
        action: change.url(options),
        method: 'post',
    })

            /**
 * @see routes/client.php:41
 * @route '/currency/change'
 */
        changeForm.post = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
            action: change.url(options),
            method: 'post',
        })
    
    change.form = changeForm
const currency = {
    change: Object.assign(change, change),
}

export default currency