import { TypeSafeEndpointDef, handler } from "@mfreydl/toyhauler-api-framework/apiCore/apiShared"; import { SingleResult } from "toyhauler-common/contracts"; import { TenantUser } from "toyhauler-common/security"; import * as authK from "toyhauler-auth-contracts"; /** Simple user authentication endpoint. */ export declare class AuthEndpointForLogin extends TypeSafeEndpointDef> { /** This is simply a declaration of the generic type SingleResult. * Javascript doesnt know generics, * and if we have a generic type (or, god help us, a nested one), * then we have to be explicit about each type callout * so we can pick it up inside the function or at another time, * eg: when the fwk is building out the openApi doc and it needs to know exactly what types to reflect on. * This nasty expression is the current goto way we have to do that. * Better ideas are encouraged. I mean... fuck. */ private static thingWeHaveToDoToKnowThisGenericTypeDefAtRuntime; constructor(route?: string, ...otherRoutes: string[]); handler: handler>; }