import { Request, Middleware } from "."; export declare type GetToken = (request: Req) => void | null | string; /** * Adds the Authorization header with the returned string as the header value. * Won't set the Authorization token if the result from getToken is falsey. */ export declare function withAuthorization(getToken: GetToken, prefix?: string): Middleware; /** * Adds the Authorization header with the returned string as the bearer token. * Won't set the Authorization token if the result from getToken is falsey. */ export declare function withBearer(getToken: GetToken): Middleware;