import { Http2ServerRequest, Http2ServerResponse } from 'http2';
import { UserData } from './types.js';

interface MiddlewareOptions {
    checkPostMethod?: boolean;
}
declare const validate: (token: string, options?: MiddlewareOptions) => (req: Http2ServerRequest, res: Http2ServerResponse) => void;
declare const checkUser: ({ hash, ...user }: UserData, token: string) => boolean;

export { checkUser, validate };
