import type { DefaultElements, MakeRequest, BasicMetaSysProps, SysLink } from '../common-types'; type Application = { id?: string; name?: string; sys: SysLink; }; type AccessTokenSysProps = BasicMetaSysProps & { application: Application | null; expiresAt: string | null; lastUsedAt: string | null; redactedValue: string; }; export type AccessTokenProp = { sys: AccessTokenSysProps; name: string; scopes: 'content_management_manage'[]; revokedAt: null | string; token?: string; }; export type CreatePersonalAccessTokenProps = Pick & { expiresIn: number; }; export interface AccessToken extends AccessTokenProp, DefaultElements { /** * Revokes access token * @return Object the revoked access token * @example ```javascript * const contentful = require('contentful-management') * * const client = contentful.createClient({ * accessToken: * }) * * client.getAccessToken('') * .then((AccessToken) => { * return accessToken.revoke() * }) * .catch(console.error) * ``` */ revoke(): Promise; } /** * @private * @param makeRequest - function to make requests via an adapter * @param data - Raw access token data * @return Wrapped access token */ export declare function wrapAccessToken(makeRequest: MakeRequest, data: AccessTokenProp): AccessToken; /** * @private * @param makeRequest - function to make requests via an adapter * @param data - Raw access collection data * @return Wrapped access token collection data */ export declare const wrapAccessTokenCollection: (makeRequest: MakeRequest, data: import("../common-types").CollectionProp) => import("../common-types").Collection; export {};