/** This is spectacularly generated code by spectacular based on Qlik Cloud Services APIs */ import Auth from '../auth/auth.js'; import ListableResource from '../listable.js'; import type { Config } from '../types/types.js'; export type OauthToken = { /** The description of the token. */ description?: string; /** The type of the user device the authorization token is generated for (Tablet, Phone etc.). */ deviceType?: string; /** The token ID. */ id: string; /** The last time the token was used. */ lastUsed?: string; /** The ID of the owning tenant. */ tenantId: string; /** The ID of the owning user. */ userId: string; [key: string]: any; }; export declare class OauthTokens { auth: Auth; config: Config; constructor(config: Config | Auth); /** Revoke an OAuth token by ID @param tokenId - The ID of the token to revoke. */ delete(tokenId: string): Promise; /** List OAuth tokens @param limit - The maximum number of tokens to return. @param page - The target page. @param sort - The field to sort by. @param userId - The ID of the user to limit results to. */ getOauthTokens(queryParams?: { limit?: number; page?: string; sort?: 'userId'; userId?: string; }): Promise>; }