/// <reference types="node" />
import {Num_s} from "dk-num";
import {Str_s} from "dk-str";
import {Time_s} from "dk-time";
import {IncomingMessage, Server, ServerResponse} from "http";

export declare const SRV_NAME = "dk-srv";
export declare const SRV_KEY = "srv";
export declare const SRV_ID = 0;
export declare const SRV_PORT = 8080;
export declare const SRV_RES_TYPE = "text/html; charset=utf-8";
export { srv_new } from "./new";
export { srv_req } from "./req";
export declare type Srv_s = {
    port?: Num_s;
    name?: Str_s;
    http?: Server;
    requests?: Srv_requests;
};
export declare type Srv_o = {
    port?: Num_s;
    name?: Str_s;
};
export declare type Srv_req = {
    srv?: Srv_o;
    path?: Str_s;
    isStatic?: boolean;
    callback?: Srv_res_func;
    contentType?: Str_s;
};
export declare type Srv_requests = Array<Srv_req>;
export declare type Srv_res_func = (item: Srv_item) => void;
export declare type Srv_item = {
    req?: Srv_req;
    time?: Time_s;
    reqHttp?: IncomingMessage;
    resHttp?: ServerResponse;
    body?: Str_s;
    match?: RegExpMatchArray;
};
