import Base, { MaybeRaw } from "../../../Base"; import { Context } from "../../../interfaces/agent/context"; export declare class AgentContext extends Base { /** * Retrieves all contexts. * @returns The requested contexts */ getContexts(raw?: { raw: R; }): Promise>; /** * Add a new context. * @returns The newly created context */ addContext(server: string, email: string, token: string, enabled: boolean, raw?: { raw: R; }): Promise>; /** * Add a new context by using a service accounts PAT token. * @returns The newly created context */ addServiceAccountContext(server: string, token: string, enabled: boolean, raw?: { raw: R; }): Promise>; /** * Update an existing context. * @returns The updated context */ updateContext(uuid: string, server: string, email: string, token: string, enabled: boolean, raw?: { raw: R; }): Promise>; /** * Get an existing context. * @returns The requested context */ getContext(uuid: string, raw?: { raw: R; }): Promise>; /** * Delete a context. * @returns void */ deleteContext(uuid: string, raw?: { raw: R; }): Promise>; /** * Patch the enabled property of a Context. * @returns Updated Context */ patchContextEnabled(uuid: string, enabled: boolean, raw?: { raw: R; }): Promise>; protected getEndpoint(endpoint: string): string; }