import { Kernel, Logger } from "oly"; import { IKoaContext } from "oly-http"; import { IToken } from "../interfaces"; export declare class Auth { token: IToken; protected logger: Logger; protected kernel: Kernel; /** * Find token in the current koa context. * * ### Default * * - `ctx.request.header.authorization`: Bearer ${token} * - `ctx.cookies.get(PIXIE_SESSION_IDENTIFIER)` (see PixieSession) * * @internal */ parseToken(ctx: IKoaContext): Promise; /** * * @param data * @param options */ createToken(data: IToken, options?: any): Promise; /** * * @param token * @param options */ checkToken(token: string, options?: any): Promise; }