index.d.ts
 1  /**
 2   * Output shape for endpoint discovery operations
 3   */
 4  export type DiscoveredEndpoints = Array<{Address?: string, CachePeriodInMinutes?: number}>
 5  declare type EndpointRecords = Array<{
 6    Address: string;
 7    Expire: number;
 8  }>;
 9  export interface EndpointIdentifier {
10      [key: string]: string | undefined;
11      serviceId?: string;
12      region?: string;
13      accessKeyId?: string;
14      operation?: string;
15  }
16  export declare class EndpointCache {
17      readonly maxSize: number;
18      private cache;
19      constructor(maxSize?: number);
20      readonly size: number;
21      put(key: EndpointIdentifier | string, value: DiscoveredEndpoints): void;
22      get(key: EndpointIdentifier | string): EndpointRecords | undefined;
23      static getKeyString(key: EndpointIdentifier): string;
24      private populateValue;
25      empty(): void;
26      remove(key: EndpointIdentifier | string): void;
27  }