import type { HttpContext } from '@adonisjs/core/http'; import type { MiddlewareFn, OneOrMore, ParsedNamedMiddleware } from '@adonisjs/core/types/http'; import { LucidModel } from '@adonisjs/lucid/types/model'; import { ManyToManySubQueryBuilderContract, RelationSubQueryBuilderContract } from '@adonisjs/lucid/types/relations'; export type Type = new (...args: any[]) => T; export type CrudAction = 'create' | 'edit' | 'show' | 'index' | 'delete'; export type RecordId = string | number; export interface Component { render(): Promise<[string, any]>; } export interface Serializable { toJSON(): T; } export type ResourceListParams = { search?: string; }; export type InferSerializable = ReturnType; export type CockpitConfig = { entrypoint: string; auth?: { logoutUrl?: string; user?: (ctx: HttpContext) => User; }; }; export type VineError = { message: string; field: string; rule: string; }; export type MiddlewareOption = OneOrMore; export type User = { avatar?: string; userName?: string; email?: string; }; export type RelationQueryBuilder = RelationSubQueryBuilderContract | ManyToManySubQueryBuilderContract;