import { AuthenticationExtension, IServiceCall, ISession } from "@chaosinsight/portalclient"; import type { IPortalResponse } from "../index"; export default class AuthKey extends AuthenticationExtension { readonly authenticationType = "AuthKey"; protected readonly extensionName = "AuthKey"; loginGet(token: string): IServiceCall>; loginPost(token: string): IServiceCall>; createPost(name: string): IServiceCall>; } export interface IAuthKey { Token: string; Name: string; UserGuid: string; } declare module "@chaosinsight/portalclient" { interface ExtensionHandler { authKey: AuthKey; } }