import { queryParams, type RouteQueryOptions, type RouteDefinition, type RouteFormDefinition } from './../../wayfinder'
/**
* @see \App\Http\Controllers\Install\InstallerController::show
* @see app/Http/Controllers/Install/InstallerController.php:27
* @route '/instalar'
*/
export const show = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: show.url(options),
    method: 'get',
})

show.definition = {
    methods: ["get","head"],
    url: '/instalar',
} satisfies RouteDefinition<["get","head"]>

/**
* @see \App\Http\Controllers\Install\InstallerController::show
* @see app/Http/Controllers/Install/InstallerController.php:27
* @route '/instalar'
*/
show.url = (options?: RouteQueryOptions) => {
    return show.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\Install\InstallerController::show
* @see app/Http/Controllers/Install/InstallerController.php:27
* @route '/instalar'
*/
show.get = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: show.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\Install\InstallerController::show
* @see app/Http/Controllers/Install/InstallerController.php:27
* @route '/instalar'
*/
show.head = (options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: show.url(options),
    method: 'head',
})

/**
* @see \App\Http\Controllers\Install\InstallerController::show
* @see app/Http/Controllers/Install/InstallerController.php:27
* @route '/instalar'
*/
const showForm = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: show.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\Install\InstallerController::show
* @see app/Http/Controllers/Install/InstallerController.php:27
* @route '/instalar'
*/
showForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: show.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\Install\InstallerController::show
* @see app/Http/Controllers/Install/InstallerController.php:27
* @route '/instalar'
*/
showForm.head = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: show.url({
        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
            _method: 'HEAD',
            ...(options?.query ?? options?.mergeQuery ?? {}),
        }
    }),
    method: 'get',
})

show.form = showForm

/**
* @see \App\Http\Controllers\Install\InstallerController::store
* @see app/Http/Controllers/Install/InstallerController.php:40
* @route '/instalar'
*/
export const store = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: store.url(options),
    method: 'post',
})

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

/**
* @see \App\Http\Controllers\Install\InstallerController::store
* @see app/Http/Controllers/Install/InstallerController.php:40
* @route '/instalar'
*/
store.url = (options?: RouteQueryOptions) => {
    return store.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\Install\InstallerController::store
* @see app/Http/Controllers/Install/InstallerController.php:40
* @route '/instalar'
*/
store.post = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: store.url(options),
    method: 'post',
})

/**
* @see \App\Http\Controllers\Install\InstallerController::store
* @see app/Http/Controllers/Install/InstallerController.php:40
* @route '/instalar'
*/
const storeForm = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: store.url(options),
    method: 'post',
})

/**
* @see \App\Http\Controllers\Install\InstallerController::store
* @see app/Http/Controllers/Install/InstallerController.php:40
* @route '/instalar'
*/
storeForm.post = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: store.url(options),
    method: 'post',
})

store.form = storeForm

/**
* @see \App\Http\Controllers\Install\InstallerController::done
* @see app/Http/Controllers/Install/InstallerController.php:130
* @route '/instalar/listo'
*/
export const done = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: done.url(options),
    method: 'get',
})

done.definition = {
    methods: ["get","head"],
    url: '/instalar/listo',
} satisfies RouteDefinition<["get","head"]>

/**
* @see \App\Http\Controllers\Install\InstallerController::done
* @see app/Http/Controllers/Install/InstallerController.php:130
* @route '/instalar/listo'
*/
done.url = (options?: RouteQueryOptions) => {
    return done.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\Install\InstallerController::done
* @see app/Http/Controllers/Install/InstallerController.php:130
* @route '/instalar/listo'
*/
done.get = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: done.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\Install\InstallerController::done
* @see app/Http/Controllers/Install/InstallerController.php:130
* @route '/instalar/listo'
*/
done.head = (options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: done.url(options),
    method: 'head',
})

/**
* @see \App\Http\Controllers\Install\InstallerController::done
* @see app/Http/Controllers/Install/InstallerController.php:130
* @route '/instalar/listo'
*/
const doneForm = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: done.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\Install\InstallerController::done
* @see app/Http/Controllers/Install/InstallerController.php:130
* @route '/instalar/listo'
*/
doneForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: done.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\Install\InstallerController::done
* @see app/Http/Controllers/Install/InstallerController.php:130
* @route '/instalar/listo'
*/
doneForm.head = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: done.url({
        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
            _method: 'HEAD',
            ...(options?.query ?? options?.mergeQuery ?? {}),
        }
    }),
    method: 'get',
})

done.form = doneForm

const install = {
    show: Object.assign(show, show),
    store: Object.assign(store, store),
    done: Object.assign(done, done),
}

export default install