import type { Description, RouteContext, RolesHierarchy, UserRole } from '@aeriajs/types'; import { Result } from '@aeriajs/types'; import { authenticate } from '../collections/user/authenticate.js'; declare const Payload: Partial<{} & Omit> & { roles: boolean; revalidate: boolean; collections: string[]; noSerialize: boolean; router: boolean; }, never>>; export declare const describe: (contextOrPayload: RouteContext | typeof Payload) => Promise> & { code: "AUTHORIZATION_ERROR" | "INVALID_CREDENTIALS" | "INACTIVE_USER"; httpStatus: 401; message: string; details: any; }, never>, "code" | "httpStatus"> & Partial<{} & Omit> & { code: "AUTHORIZATION_ERROR" | "INVALID_CREDENTIALS" | "INACTIVE_USER"; httpStatus: 401; message: string; details: any; }, never>>; readonly result: undefined; } | { readonly _tag: "Result"; readonly error: undefined; readonly result: { descriptions: Record; roles?: UserRole[]; auth?: Awaited> extends Result.Either ? Partial : never; router?: unknown; rolesHierarchy?: RolesHierarchy; }; }>; export {};