import { Cookie } from 'puppeteer-core';

declare function loginToAternos(user: string, pass: string): Promise<Cookie[]>;

interface ServerInfo {
    name: string | null;
    id: string | null;
    status: 'online' | 'offline' | 'unknown';
    software: string | null;
    players: string | null;
}
interface ServerListResponse {
    servers: ServerInfo[];
}
declare function getServerList(cookies: Cookie[]): Promise<ServerListResponse>;

interface DashboardInfo {
    shareUrl: string | null;
    address: string | null;
    port: string | null;
    software: string | null;
    version: string | null;
    players: string | null;
    ram: string | null;
}
interface ActionResult {
    success: boolean;
    message: string;
    status?: string | null;
    timeRemaining?: string | null;
}
declare function manageServer(cookies: Cookie[], serverId: string, task: 'info'): Promise<DashboardInfo | null>;
declare function manageServer(cookies: Cookie[], serverId: string, task: 'start' | 'stop' | 'restart'): Promise<ActionResult>;

declare function viewConsoleLive(cookies: Cookie[], serverId: string): Promise<void>;

export { getServerList, loginToAternos, manageServer, viewConsoleLive };
