declare module lib_url { /** * @author fenris */ type type_url = { protocol?: string; host?: string; port?: int; path?: string; arguments?: { [key: string]: string; }; }; } declare module lib_url { /** * @author fenris */ function encode(url: type_url, { "protocol": protocol, "host": host, "port": port, "path": path, "arguments": arguments_, }?: { protocol?: string; host?: string; port?: int; path?: string; arguments?: { [key: string]: string; }; }): string; /** * @author fenris * @todo arguments */ function decode(url_raw: string): type_url; } declare module lib_url { } declare module lib_url { /** * @author fenris */ class class_url implements lib_code.interface_code { /** * @author fenris */ constructor(); /** * @implementation * @author fenris */ encode(x: any): string; /** * @implementation * @author fenris */ decode(x: string): any; } }