import { ValidateUserFn } from '@envelop/generic-auth';
import type { Role } from '../__generated__/types.js';
export type UserType = {
    username: string;
    userId: string;
    role?: Role;
};
export declare const authPlugin: () => import("@envelop/types").Plugin<{
    validateUser: ValidateUserFn<UserType>;
} & Record<"currentUser", UserType>>;
