UNPKG

@a11ywatch/core

Version:
11 lines (10 loc) 837 B
import type { FastifyContext } from "apollo-server-fastify"; import type { User } from "../../types/schema"; export declare const getUserFromId: (user: any, keyid: any) => Promise<any[] | [import("../../types/types").User, any]>; export declare const getUserFromApi: (token: string, _req: FastifyContext["request"], res: FastifyContext["reply"]) => Promise<User>; export declare const allowedNext: (token: string, req: FastifyContext["request"], res: FastifyContext["reply"], mediaType?: "html" | "json") => void | { id: number; }; export declare const getUserFromApiScan: (token: string, _req: FastifyContext["request"], res: FastifyContext["reply"]) => Promise<User>; export declare const retreiveUserByToken: (token: string) => Promise<[User, any]>; export declare const retreiveUserByTokenWrapper: (token: any) => Promise<User>;