import type { ServerRequest, ServerResponse } from 'microrouter';
import { ParseAuthHeaderResult } from '../util';
import type { Server } from './base';
import type { Device } from '../data/device';
export declare function parsePassword(req: ServerRequest): ParseAuthHeaderResult;
export declare function auth(server: Server, req: ServerRequest, res: ServerResponse): Promise<Device | undefined>;
