export interface EmailAddresses { primary?: string; billing?: string; } export declare namespace EmailAddresses { type Type = "primary" | "billing"; const types: ["primary", "billing"]; function is(value: EmailAddresses | any): value is EmailAddresses; function get(value: EmailAddresses | string | undefined, ...type: Type[]): string | undefined; function map(addresses: EmailAddresses, mapping: (type: Type, address: string) => T): T[]; }