///
declare module "api/auth/login" {
export const _: {
url: string;
api(username: string, password: string): Promise<{
status: string;
session: any;
reason?: undefined;
} | {
status: string;
reason: string;
session?: undefined;
}>;
};
}
declare module "api/session" {
export const _: {
url: string;
api(): Promise;
};
}
declare module "global" {
import { site, user } from "dbgen";
import { ExecaChildProcess } from "execa";
export const glb: {
lastUpdate: Record;
prasiSrv: {
status: Record;
running: Record;
};
npm: {
page: Record;
site: Record;
};
};
export type Session = {
user: user & {
site: site[];
};
};
}
declare module "api/npm" {
export const _: {
url: string;
api(mode: "site" | "page", id: string): Promise;
};
}
declare module "api/site-dts" {
export const _: {
url: string;
api(site_id: string): Promise;
};
}
declare module "exports" {
export const login: {
name: string;
url: string;
path: string;
args: string[];
handler: Promise;
};
export const session: {
name: string;
url: string;
path: string;
args: any[];
handler: Promise;
};
export const npm: {
name: string;
url: string;
path: string;
args: string[];
handler: Promise;
};
export const site_dts: {
name: string;
url: string;
path: string;
args: string[];
handler: Promise;
};
export const _upload: {
name: string;
url: string;
path: string;
args: string[];
handler: Promise;
};
export const _prasi: {
name: string;
url: string;
path: string;
args: any[];
handler: Promise;
};
export const _file: {
name: string;
url: string;
path: string;
args: any[];
handler: Promise;
};
export const _api_frm: {
name: string;
url: string;
path: string;
args: any[];
handler: Promise;
};
export const _dbs: {
name: string;
url: string;
path: string;
args: string[];
handler: Promise;
};
}