///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
declare module 'starkbank' {
export var user: Project | Organization | null
export function setUser(user: Project | Organization): void;
export function getUser(): Project | Organization;
export function setLanguage(language: 'pt-BR' | 'en-US'): void;
export function getLanguage(): 'pt-BR' | 'en-US';
export var httpsAgent: import('http').Agent | null
export function setHttpsAgent(httpsAgent: import('http').Agent | null): void;
export function getHttpsAgent(): import('http').Agent | null;
export namespace key {
function create(): [newPrivatePem: string, newPublicPem: string];
function create(path: string): [newPrivatePem: string, newPublicPem: string];
}
export const cache: {};
export const language: string;
export const version: string;
export namespace error {
class StarkBankError extends Error {
constructor(message: string);
}
class InputError extends StarkBankError {
constructor(code : string, message : string, status: number)
}
class InputErrors extends StarkBankError {
constructor(content : string, status : number)
}
class InternalServerError extends StarkBankError {
constructor(content : string, status : number)
}
class InvalidSignatureError extends StarkBankError {
constructor(message : string)
}
}
}