import { queryParams, type RouteQueryOptions, type RouteDefinition, type RouteFormDefinition, applyUrlDefaults } from './../../../../../wayfinder'
/**
* @see \App\Http\Controllers\Admin\AdminDebugController::index
* @see app/Http/Controllers/Admin/AdminDebugController.php:19
* @route '/admin/debug'
*/
export const index = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: index.url(options),
    method: 'get',
})

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

/**
* @see \App\Http\Controllers\Admin\AdminDebugController::index
* @see app/Http/Controllers/Admin/AdminDebugController.php:19
* @route '/admin/debug'
*/
index.url = (options?: RouteQueryOptions) => {
    return index.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\Admin\AdminDebugController::index
* @see app/Http/Controllers/Admin/AdminDebugController.php:19
* @route '/admin/debug'
*/
index.get = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: index.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\Admin\AdminDebugController::index
* @see app/Http/Controllers/Admin/AdminDebugController.php:19
* @route '/admin/debug'
*/
index.head = (options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: index.url(options),
    method: 'head',
})

/**
* @see \App\Http\Controllers\Admin\AdminDebugController::index
* @see app/Http/Controllers/Admin/AdminDebugController.php:19
* @route '/admin/debug'
*/
const indexForm = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: index.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\Admin\AdminDebugController::index
* @see app/Http/Controllers/Admin/AdminDebugController.php:19
* @route '/admin/debug'
*/
indexForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: index.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\Admin\AdminDebugController::index
* @see app/Http/Controllers/Admin/AdminDebugController.php:19
* @route '/admin/debug'
*/
indexForm.head = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: index.url({
        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
            _method: 'HEAD',
            ...(options?.query ?? options?.mergeQuery ?? {}),
        }
    }),
    method: 'get',
})

index.form = indexForm

/**
* @see \App\Http\Controllers\Admin\AdminDebugController::sectionInvestments
* @see app/Http/Controllers/Admin/AdminDebugController.php:46
* @route '/admin/debug/secciones/inversiones'
*/
export const sectionInvestments = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: sectionInvestments.url(options),
    method: 'get',
})

sectionInvestments.definition = {
    methods: ["get","head"],
    url: '/admin/debug/secciones/inversiones',
} satisfies RouteDefinition<["get","head"]>

/**
* @see \App\Http\Controllers\Admin\AdminDebugController::sectionInvestments
* @see app/Http/Controllers/Admin/AdminDebugController.php:46
* @route '/admin/debug/secciones/inversiones'
*/
sectionInvestments.url = (options?: RouteQueryOptions) => {
    return sectionInvestments.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\Admin\AdminDebugController::sectionInvestments
* @see app/Http/Controllers/Admin/AdminDebugController.php:46
* @route '/admin/debug/secciones/inversiones'
*/
sectionInvestments.get = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: sectionInvestments.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\Admin\AdminDebugController::sectionInvestments
* @see app/Http/Controllers/Admin/AdminDebugController.php:46
* @route '/admin/debug/secciones/inversiones'
*/
sectionInvestments.head = (options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: sectionInvestments.url(options),
    method: 'head',
})

/**
* @see \App\Http\Controllers\Admin\AdminDebugController::sectionInvestments
* @see app/Http/Controllers/Admin/AdminDebugController.php:46
* @route '/admin/debug/secciones/inversiones'
*/
const sectionInvestmentsForm = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: sectionInvestments.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\Admin\AdminDebugController::sectionInvestments
* @see app/Http/Controllers/Admin/AdminDebugController.php:46
* @route '/admin/debug/secciones/inversiones'
*/
sectionInvestmentsForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: sectionInvestments.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\Admin\AdminDebugController::sectionInvestments
* @see app/Http/Controllers/Admin/AdminDebugController.php:46
* @route '/admin/debug/secciones/inversiones'
*/
sectionInvestmentsForm.head = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: sectionInvestments.url({
        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
            _method: 'HEAD',
            ...(options?.query ?? options?.mergeQuery ?? {}),
        }
    }),
    method: 'get',
})

sectionInvestments.form = sectionInvestmentsForm

/**
* @see \App\Http\Controllers\Admin\AdminDebugController::sectionUsers
* @see app/Http/Controllers/Admin/AdminDebugController.php:62
* @route '/admin/debug/secciones/usuarios'
*/
export const sectionUsers = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: sectionUsers.url(options),
    method: 'get',
})

sectionUsers.definition = {
    methods: ["get","head"],
    url: '/admin/debug/secciones/usuarios',
} satisfies RouteDefinition<["get","head"]>

/**
* @see \App\Http\Controllers\Admin\AdminDebugController::sectionUsers
* @see app/Http/Controllers/Admin/AdminDebugController.php:62
* @route '/admin/debug/secciones/usuarios'
*/
sectionUsers.url = (options?: RouteQueryOptions) => {
    return sectionUsers.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\Admin\AdminDebugController::sectionUsers
* @see app/Http/Controllers/Admin/AdminDebugController.php:62
* @route '/admin/debug/secciones/usuarios'
*/
sectionUsers.get = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: sectionUsers.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\Admin\AdminDebugController::sectionUsers
* @see app/Http/Controllers/Admin/AdminDebugController.php:62
* @route '/admin/debug/secciones/usuarios'
*/
sectionUsers.head = (options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: sectionUsers.url(options),
    method: 'head',
})

/**
* @see \App\Http\Controllers\Admin\AdminDebugController::sectionUsers
* @see app/Http/Controllers/Admin/AdminDebugController.php:62
* @route '/admin/debug/secciones/usuarios'
*/
const sectionUsersForm = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: sectionUsers.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\Admin\AdminDebugController::sectionUsers
* @see app/Http/Controllers/Admin/AdminDebugController.php:62
* @route '/admin/debug/secciones/usuarios'
*/
sectionUsersForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: sectionUsers.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\Admin\AdminDebugController::sectionUsers
* @see app/Http/Controllers/Admin/AdminDebugController.php:62
* @route '/admin/debug/secciones/usuarios'
*/
sectionUsersForm.head = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: sectionUsers.url({
        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
            _method: 'HEAD',
            ...(options?.query ?? options?.mergeQuery ?? {}),
        }
    }),
    method: 'get',
})

sectionUsers.form = sectionUsersForm

/**
* @see \App\Http\Controllers\Admin\AdminDebugController::sectionManualCredits
* @see app/Http/Controllers/Admin/AdminDebugController.php:78
* @route '/admin/debug/secciones/ajustes-manuales'
*/
export const sectionManualCredits = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: sectionManualCredits.url(options),
    method: 'get',
})

sectionManualCredits.definition = {
    methods: ["get","head"],
    url: '/admin/debug/secciones/ajustes-manuales',
} satisfies RouteDefinition<["get","head"]>

/**
* @see \App\Http\Controllers\Admin\AdminDebugController::sectionManualCredits
* @see app/Http/Controllers/Admin/AdminDebugController.php:78
* @route '/admin/debug/secciones/ajustes-manuales'
*/
sectionManualCredits.url = (options?: RouteQueryOptions) => {
    return sectionManualCredits.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\Admin\AdminDebugController::sectionManualCredits
* @see app/Http/Controllers/Admin/AdminDebugController.php:78
* @route '/admin/debug/secciones/ajustes-manuales'
*/
sectionManualCredits.get = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: sectionManualCredits.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\Admin\AdminDebugController::sectionManualCredits
* @see app/Http/Controllers/Admin/AdminDebugController.php:78
* @route '/admin/debug/secciones/ajustes-manuales'
*/
sectionManualCredits.head = (options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: sectionManualCredits.url(options),
    method: 'head',
})

/**
* @see \App\Http\Controllers\Admin\AdminDebugController::sectionManualCredits
* @see app/Http/Controllers/Admin/AdminDebugController.php:78
* @route '/admin/debug/secciones/ajustes-manuales'
*/
const sectionManualCreditsForm = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: sectionManualCredits.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\Admin\AdminDebugController::sectionManualCredits
* @see app/Http/Controllers/Admin/AdminDebugController.php:78
* @route '/admin/debug/secciones/ajustes-manuales'
*/
sectionManualCreditsForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: sectionManualCredits.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\Admin\AdminDebugController::sectionManualCredits
* @see app/Http/Controllers/Admin/AdminDebugController.php:78
* @route '/admin/debug/secciones/ajustes-manuales'
*/
sectionManualCreditsForm.head = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: sectionManualCredits.url({
        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
            _method: 'HEAD',
            ...(options?.query ?? options?.mergeQuery ?? {}),
        }
    }),
    method: 'get',
})

sectionManualCredits.form = sectionManualCreditsForm

/**
* @see \App\Http\Controllers\Admin\AdminDebugController::sectionAccruals
* @see app/Http/Controllers/Admin/AdminDebugController.php:89
* @route '/admin/debug/secciones/acreditaciones'
*/
export const sectionAccruals = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: sectionAccruals.url(options),
    method: 'get',
})

sectionAccruals.definition = {
    methods: ["get","head"],
    url: '/admin/debug/secciones/acreditaciones',
} satisfies RouteDefinition<["get","head"]>

/**
* @see \App\Http\Controllers\Admin\AdminDebugController::sectionAccruals
* @see app/Http/Controllers/Admin/AdminDebugController.php:89
* @route '/admin/debug/secciones/acreditaciones'
*/
sectionAccruals.url = (options?: RouteQueryOptions) => {
    return sectionAccruals.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\Admin\AdminDebugController::sectionAccruals
* @see app/Http/Controllers/Admin/AdminDebugController.php:89
* @route '/admin/debug/secciones/acreditaciones'
*/
sectionAccruals.get = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: sectionAccruals.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\Admin\AdminDebugController::sectionAccruals
* @see app/Http/Controllers/Admin/AdminDebugController.php:89
* @route '/admin/debug/secciones/acreditaciones'
*/
sectionAccruals.head = (options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: sectionAccruals.url(options),
    method: 'head',
})

/**
* @see \App\Http\Controllers\Admin\AdminDebugController::sectionAccruals
* @see app/Http/Controllers/Admin/AdminDebugController.php:89
* @route '/admin/debug/secciones/acreditaciones'
*/
const sectionAccrualsForm = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: sectionAccruals.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\Admin\AdminDebugController::sectionAccruals
* @see app/Http/Controllers/Admin/AdminDebugController.php:89
* @route '/admin/debug/secciones/acreditaciones'
*/
sectionAccrualsForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: sectionAccruals.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\Admin\AdminDebugController::sectionAccruals
* @see app/Http/Controllers/Admin/AdminDebugController.php:89
* @route '/admin/debug/secciones/acreditaciones'
*/
sectionAccrualsForm.head = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: sectionAccruals.url({
        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
            _method: 'HEAD',
            ...(options?.query ?? options?.mergeQuery ?? {}),
        }
    }),
    method: 'get',
})

sectionAccruals.form = sectionAccrualsForm

/**
* @see \App\Http\Controllers\Admin\AdminDebugController::sectionBalanceConsolidation
* @see app/Http/Controllers/Admin/AdminDebugController.php:100
* @route '/admin/debug/secciones/consolidacion-balance'
*/
export const sectionBalanceConsolidation = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: sectionBalanceConsolidation.url(options),
    method: 'get',
})

sectionBalanceConsolidation.definition = {
    methods: ["get","head"],
    url: '/admin/debug/secciones/consolidacion-balance',
} satisfies RouteDefinition<["get","head"]>

/**
* @see \App\Http\Controllers\Admin\AdminDebugController::sectionBalanceConsolidation
* @see app/Http/Controllers/Admin/AdminDebugController.php:100
* @route '/admin/debug/secciones/consolidacion-balance'
*/
sectionBalanceConsolidation.url = (options?: RouteQueryOptions) => {
    return sectionBalanceConsolidation.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\Admin\AdminDebugController::sectionBalanceConsolidation
* @see app/Http/Controllers/Admin/AdminDebugController.php:100
* @route '/admin/debug/secciones/consolidacion-balance'
*/
sectionBalanceConsolidation.get = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: sectionBalanceConsolidation.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\Admin\AdminDebugController::sectionBalanceConsolidation
* @see app/Http/Controllers/Admin/AdminDebugController.php:100
* @route '/admin/debug/secciones/consolidacion-balance'
*/
sectionBalanceConsolidation.head = (options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: sectionBalanceConsolidation.url(options),
    method: 'head',
})

/**
* @see \App\Http\Controllers\Admin\AdminDebugController::sectionBalanceConsolidation
* @see app/Http/Controllers/Admin/AdminDebugController.php:100
* @route '/admin/debug/secciones/consolidacion-balance'
*/
const sectionBalanceConsolidationForm = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: sectionBalanceConsolidation.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\Admin\AdminDebugController::sectionBalanceConsolidation
* @see app/Http/Controllers/Admin/AdminDebugController.php:100
* @route '/admin/debug/secciones/consolidacion-balance'
*/
sectionBalanceConsolidationForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: sectionBalanceConsolidation.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\Admin\AdminDebugController::sectionBalanceConsolidation
* @see app/Http/Controllers/Admin/AdminDebugController.php:100
* @route '/admin/debug/secciones/consolidacion-balance'
*/
sectionBalanceConsolidationForm.head = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: sectionBalanceConsolidation.url({
        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
            _method: 'HEAD',
            ...(options?.query ?? options?.mergeQuery ?? {}),
        }
    }),
    method: 'get',
})

sectionBalanceConsolidation.form = sectionBalanceConsolidationForm

/**
* @see \App\Http\Controllers\Admin\AdminDebugController::bulkConsolidateBalancePreview
* @see app/Http/Controllers/Admin/AdminDebugController.php:111
* @route '/admin/debug/consolidacion-balance/preview'
*/
export const bulkConsolidateBalancePreview = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: bulkConsolidateBalancePreview.url(options),
    method: 'get',
})

bulkConsolidateBalancePreview.definition = {
    methods: ["get","head"],
    url: '/admin/debug/consolidacion-balance/preview',
} satisfies RouteDefinition<["get","head"]>

/**
* @see \App\Http\Controllers\Admin\AdminDebugController::bulkConsolidateBalancePreview
* @see app/Http/Controllers/Admin/AdminDebugController.php:111
* @route '/admin/debug/consolidacion-balance/preview'
*/
bulkConsolidateBalancePreview.url = (options?: RouteQueryOptions) => {
    return bulkConsolidateBalancePreview.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\Admin\AdminDebugController::bulkConsolidateBalancePreview
* @see app/Http/Controllers/Admin/AdminDebugController.php:111
* @route '/admin/debug/consolidacion-balance/preview'
*/
bulkConsolidateBalancePreview.get = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: bulkConsolidateBalancePreview.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\Admin\AdminDebugController::bulkConsolidateBalancePreview
* @see app/Http/Controllers/Admin/AdminDebugController.php:111
* @route '/admin/debug/consolidacion-balance/preview'
*/
bulkConsolidateBalancePreview.head = (options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: bulkConsolidateBalancePreview.url(options),
    method: 'head',
})

/**
* @see \App\Http\Controllers\Admin\AdminDebugController::bulkConsolidateBalancePreview
* @see app/Http/Controllers/Admin/AdminDebugController.php:111
* @route '/admin/debug/consolidacion-balance/preview'
*/
const bulkConsolidateBalancePreviewForm = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: bulkConsolidateBalancePreview.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\Admin\AdminDebugController::bulkConsolidateBalancePreview
* @see app/Http/Controllers/Admin/AdminDebugController.php:111
* @route '/admin/debug/consolidacion-balance/preview'
*/
bulkConsolidateBalancePreviewForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: bulkConsolidateBalancePreview.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\Admin\AdminDebugController::bulkConsolidateBalancePreview
* @see app/Http/Controllers/Admin/AdminDebugController.php:111
* @route '/admin/debug/consolidacion-balance/preview'
*/
bulkConsolidateBalancePreviewForm.head = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: bulkConsolidateBalancePreview.url({
        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
            _method: 'HEAD',
            ...(options?.query ?? options?.mergeQuery ?? {}),
        }
    }),
    method: 'get',
})

bulkConsolidateBalancePreview.form = bulkConsolidateBalancePreviewForm

/**
* @see \App\Http\Controllers\Admin\AdminDebugController::bulkConsolidateBalance
* @see app/Http/Controllers/Admin/AdminDebugController.php:130
* @route '/admin/debug/consolidacion-balance'
*/
export const bulkConsolidateBalance = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: bulkConsolidateBalance.url(options),
    method: 'post',
})

bulkConsolidateBalance.definition = {
    methods: ["post"],
    url: '/admin/debug/consolidacion-balance',
} satisfies RouteDefinition<["post"]>

/**
* @see \App\Http\Controllers\Admin\AdminDebugController::bulkConsolidateBalance
* @see app/Http/Controllers/Admin/AdminDebugController.php:130
* @route '/admin/debug/consolidacion-balance'
*/
bulkConsolidateBalance.url = (options?: RouteQueryOptions) => {
    return bulkConsolidateBalance.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\Admin\AdminDebugController::bulkConsolidateBalance
* @see app/Http/Controllers/Admin/AdminDebugController.php:130
* @route '/admin/debug/consolidacion-balance'
*/
bulkConsolidateBalance.post = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: bulkConsolidateBalance.url(options),
    method: 'post',
})

/**
* @see \App\Http\Controllers\Admin\AdminDebugController::bulkConsolidateBalance
* @see app/Http/Controllers/Admin/AdminDebugController.php:130
* @route '/admin/debug/consolidacion-balance'
*/
const bulkConsolidateBalanceForm = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: bulkConsolidateBalance.url(options),
    method: 'post',
})

/**
* @see \App\Http\Controllers\Admin\AdminDebugController::bulkConsolidateBalance
* @see app/Http/Controllers/Admin/AdminDebugController.php:130
* @route '/admin/debug/consolidacion-balance'
*/
bulkConsolidateBalanceForm.post = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: bulkConsolidateBalance.url(options),
    method: 'post',
})

bulkConsolidateBalance.form = bulkConsolidateBalanceForm

/**
* @see \App\Http\Controllers\Admin\AdminDebugController::revertManualBalance
* @see app/Http/Controllers/Admin/AdminDebugController.php:168
* @route '/admin/debug/usuarios/{user}/balance-manual/{transaction}/revertir'
*/
export const revertManualBalance = (args: { user: number | { id: number }, transaction: number | { id: number } } | [user: number | { id: number }, transaction: number | { id: number } ], options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: revertManualBalance.url(args, options),
    method: 'post',
})

revertManualBalance.definition = {
    methods: ["post"],
    url: '/admin/debug/usuarios/{user}/balance-manual/{transaction}/revertir',
} satisfies RouteDefinition<["post"]>

/**
* @see \App\Http\Controllers\Admin\AdminDebugController::revertManualBalance
* @see app/Http/Controllers/Admin/AdminDebugController.php:168
* @route '/admin/debug/usuarios/{user}/balance-manual/{transaction}/revertir'
*/
revertManualBalance.url = (args: { user: number | { id: number }, transaction: number | { id: number } } | [user: number | { id: number }, transaction: number | { id: number } ], options?: RouteQueryOptions) => {
    if (Array.isArray(args)) {
        args = {
            user: args[0],
            transaction: args[1],
        }
    }

    args = applyUrlDefaults(args)

    const parsedArgs = {
        user: typeof args.user === 'object'
        ? args.user.id
        : args.user,
        transaction: typeof args.transaction === 'object'
        ? args.transaction.id
        : args.transaction,
    }

    return revertManualBalance.definition.url
            .replace('{user}', parsedArgs.user.toString())
            .replace('{transaction}', parsedArgs.transaction.toString())
            .replace(/\/+$/, '') + queryParams(options)
}

/**
* @see \App\Http\Controllers\Admin\AdminDebugController::revertManualBalance
* @see app/Http/Controllers/Admin/AdminDebugController.php:168
* @route '/admin/debug/usuarios/{user}/balance-manual/{transaction}/revertir'
*/
revertManualBalance.post = (args: { user: number | { id: number }, transaction: number | { id: number } } | [user: number | { id: number }, transaction: number | { id: number } ], options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: revertManualBalance.url(args, options),
    method: 'post',
})

/**
* @see \App\Http\Controllers\Admin\AdminDebugController::revertManualBalance
* @see app/Http/Controllers/Admin/AdminDebugController.php:168
* @route '/admin/debug/usuarios/{user}/balance-manual/{transaction}/revertir'
*/
const revertManualBalanceForm = (args: { user: number | { id: number }, transaction: number | { id: number } } | [user: number | { id: number }, transaction: number | { id: number } ], options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: revertManualBalance.url(args, options),
    method: 'post',
})

/**
* @see \App\Http\Controllers\Admin\AdminDebugController::revertManualBalance
* @see app/Http/Controllers/Admin/AdminDebugController.php:168
* @route '/admin/debug/usuarios/{user}/balance-manual/{transaction}/revertir'
*/
revertManualBalanceForm.post = (args: { user: number | { id: number }, transaction: number | { id: number } } | [user: number | { id: number }, transaction: number | { id: number } ], options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: revertManualBalance.url(args, options),
    method: 'post',
})

revertManualBalance.form = revertManualBalanceForm

const AdminDebugController = { index, sectionInvestments, sectionUsers, sectionManualCredits, sectionAccruals, sectionBalanceConsolidation, bulkConsolidateBalancePreview, bulkConsolidateBalance, revertManualBalance }

export default AdminDebugController