export interface HttpParameterCodec { encodeKey(key: string): string; encodeValue(value: string): string; decodeKey(key: string): string; decodeValue(value: string): string; } /** * Provides encoding and decoding of URL parameter and query-string values. * * Serializes and parses URL parameter keys and values to encode and decode them. * If you pass URL query parameters without encoding, * the query parameters can be misinterpreted at the receiving end. */ export declare class HttpUrlEncodingCodec implements HttpParameterCodec { /** * Encodes a key name for a URL parameter or query-string. * @param key The key name. * @returns The encoded key name. */ encodeKey(key: string): string; /** * Encodes the value of a URL parameter or query-string. * @param value The value. * @returns The encoded value. */ encodeValue(value: string): string; /** * Decodes an encoded URL parameter or query-string key. * @param key The encoded key name. * @returns The decoded key name. */ decodeKey(key: string): string; /** * Decodes an encoded URL parameter or query-string value. * @param value The encoded value. * @returns The decoded value. */ decodeValue(value: string): string; } export declare class HttpParams { private map; private encoder; constructor(source?: string | { [param: string]: string | number | boolean | ReadonlyArray; } | null, options?: { encoder?: HttpParameterCodec; }); has(param: string): boolean; get(param: string): string | null; getAll(param: string): string[] | null; keys(): string[]; append(param: string, value: string | number | boolean): HttpParams; appendAll(params: { [param: string]: string | number | boolean | ReadonlyArray; }): HttpParams; set(param: string, value: string | number | boolean | ReadonlyArray): HttpParams; delete(param: string, value?: string | number | boolean): HttpParams; toString(): string; private clone; }