import { queryParams, type RouteQueryOptions, type RouteDefinition, type RouteFormDefinition } from './../../../../../wayfinder'
/**
* @see \App\Http\Controllers\Widget\TypingController::__invoke
* @see app/Http/Controllers/Widget/TypingController.php:24
* @route '/api/v1/widget/typing'
*/
const TypingController = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: TypingController.url(options),
    method: 'post',
})

TypingController.definition = {
    methods: ["post"],
    url: '/api/v1/widget/typing',
} satisfies RouteDefinition<["post"]>

/**
* @see \App\Http\Controllers\Widget\TypingController::__invoke
* @see app/Http/Controllers/Widget/TypingController.php:24
* @route '/api/v1/widget/typing'
*/
TypingController.url = (options?: RouteQueryOptions) => {
    return TypingController.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\Widget\TypingController::__invoke
* @see app/Http/Controllers/Widget/TypingController.php:24
* @route '/api/v1/widget/typing'
*/
TypingController.post = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: TypingController.url(options),
    method: 'post',
})

/**
* @see \App\Http\Controllers\Widget\TypingController::__invoke
* @see app/Http/Controllers/Widget/TypingController.php:24
* @route '/api/v1/widget/typing'
*/
const TypingControllerForm = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: TypingController.url(options),
    method: 'post',
})

/**
* @see \App\Http\Controllers\Widget\TypingController::__invoke
* @see app/Http/Controllers/Widget/TypingController.php:24
* @route '/api/v1/widget/typing'
*/
TypingControllerForm.post = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: TypingController.url(options),
    method: 'post',
})

TypingController.form = TypingControllerForm

export default TypingController