import { SchemaInput } from "../computed-types-wrapper"; export declare type Endpoint = SchemaInput; export declare const zEndpoint: import("../computed-types-wrapper").ParsableSchemaInput, import("computed-types/lib/schema/FunctionType").default>>; host: import("computed-types/lib/Validator").ValidatorProxy, import("computed-types/lib/schema/FunctionType").default>; path: import("computed-types/lib/Validator").ValidatorProxy, import("computed-types/lib/schema/FunctionType").default>; }>>, import("computed-types").SchemaValidatorFunction<{ secure: import("../computed-types-wrapper").ParsableSchemaInput, import("computed-types/lib/schema/FunctionType").default>>; host: import("computed-types/lib/Validator").ValidatorProxy, import("computed-types/lib/schema/FunctionType").default>; path: import("computed-types/lib/Validator").ValidatorProxy, import("computed-types/lib/schema/FunctionType").default>; }>>>; export declare const endpoints: { auth: { host: string; path: string; secure?: boolean | null | undefined; }; guestAuth: { host: string; path: string; secure?: boolean | null | undefined; }; ws: { host: string; path: string; secure?: boolean | null | undefined; }; lobby: { host: string; path: string; secure?: boolean | null | undefined; }; player: { host: string; path: string; secure?: boolean | null | undefined; }; register: { host: string; path: string; secure?: boolean | null | undefined; }; shopItems: { host: string; path: string; secure?: boolean | null | undefined; }; shopBuy: { host: string; path: string; secure?: boolean | null | undefined; }; }; export declare function rewriteHost(rewriter: (endpoint: Endpoint) => Endpoint): void; export declare function useDev(): void; /** * The algorithm used when coercing `secure` in `Endpoint` to a value. The algorithm is as follows: * * 1. If explicitly specified, use the value. * 2. If `location` is defined and if `location.protocol` is insecure, return `false`. * 3. Otherwise, return `true`. * * @package * @param secure The value of `secure` */ export declare function coerceSecure(secure: boolean | null | undefined): boolean; /** * Converts an `Endpoint` into a URL. The implementation of this method shouldn't be relied upon as it changes, but it * will use `coerceSecure` to convert the optional `secure` into `true` or `false`. Then, it'll concatenate the host * and path, using `websocket` to determine if it should prefix the URL with ws?:// or http?://. * @param endpoint The endpoint to convert into a URL. * @returns The endpoint converted to a URL. */ export declare function toUrl(endpoint: Endpoint, websocket: boolean): URL;