1 | import { RawParams } from '../params/interface';
|
2 | import { ParamType } from './paramType';
|
3 | import { StateDeclaration } from '../state';
|
4 | import { UrlConfig } from '../url';
|
5 | declare enum DefType {
|
6 | PATH = 0,
|
7 | SEARCH = 1,
|
8 | CONFIG = 2
|
9 | }
|
10 | export { DefType };
|
11 | export declare class Param {
|
12 | id: string;
|
13 | type: ParamType;
|
14 | location: DefType;
|
15 | isOptional: boolean;
|
16 | dynamic: boolean;
|
17 | raw: boolean;
|
18 | squash: boolean | string;
|
19 | replace: [{
|
20 | to: any;
|
21 | from: any;
|
22 | }];
|
23 | inherit: boolean;
|
24 | array: boolean;
|
25 | config: any;
|
26 |
|
27 | _defaultValueCache: {
|
28 | defaultValue: any;
|
29 | };
|
30 | static values(params: Param[], values?: RawParams): RawParams;
|
31 | |
32 |
|
33 |
|
34 |
|
35 |
|
36 |
|
37 |
|
38 |
|
39 |
|
40 |
|
41 |
|
42 | static changed(params: Param[], values1?: RawParams, values2?: RawParams): Param[];
|
43 | |
44 |
|
45 |
|
46 |
|
47 |
|
48 |
|
49 |
|
50 |
|
51 |
|
52 | static equals(params: Param[], values1?: {}, values2?: {}): boolean;
|
53 |
|
54 | static validates(params: Param[], values?: RawParams): boolean;
|
55 | constructor(id: string, type: ParamType, location: DefType, urlConfig: UrlConfig, state: StateDeclaration);
|
56 | isDefaultValue(value: any): boolean;
|
57 | /**
|
58 | * [Internal] Gets the decoded representation of a value if the value is defined, otherwise, returns the
|
59 | * default value, which may be the result of an injectable function.
|
60 | */
|
61 | value(value?: any): any;
|
62 | isSearch(): boolean;
|
63 | validates(value: any): boolean;
|
64 | toString(): string;
|
65 | }
|