export interface TokenServerDeps {
    getValidToken: (context: string) => Promise<string | null>;
    readCredentials: (context: string) => {
        accessToken: string;
        expiresAt: string;
        email?: string;
    } | null;
    decodeJwtPayload: (jwt: string) => Record<string, unknown>;
}
export declare function handleTokenRequest(context: string, deps: TokenServerDeps): Promise<{
    status: number;
    body: unknown;
}>;
export declare function startTokenServer(port: number, context: string): Promise<void>;
