///
import { IncomingMessage } from "http";
import { Profile } from "./types";
declare type Authenticated = {
status: 200;
message?: undefined;
profile: Profile;
};
declare type NotAuthenticated = {
status: 401 | 403;
message: string;
profile?: never;
};
declare type NodeReqeust = {
headers: IncomingMessage["headers"];
};
declare type FetchRequest = {
headers: {
get: (name: string) => string | null;
};
};
export default function authenticate({ clientId, request: { headers }, }: {
clientId: string;
request: NodeReqeust | FetchRequest;
}): Promise;
export {};