UNPKG

fenextjs-interface

Version:
200 lines (199 loc) 6.05 kB
export interface GeocoderAddressComponent { long_name: string; short_name: string; types: string[]; } export interface PlaceAspectRating { rating: number; type: string; } export declare enum BusinessStatus { CLOSED_PERMANENTLY = "CLOSED_PERMANENTLY", CLOSED_TEMPORARILY = "CLOSED_TEMPORARILY", OPERATIONAL = "OPERATIONAL" } export interface LatLngLiteral { lat: number; lng: number; } export interface LatLngBoundsLiteral { east: number; north: number; south: number; west: number; } export declare class LatLngBounds { constructor(swOrLatLngBounds?: LatLng | null | LatLngLiteral | LatLngBounds | LatLngBoundsLiteral, ne?: LatLng | null | LatLngLiteral); contains(latLng: LatLng | LatLngLiteral): boolean; equals(other: LatLngBounds | null | LatLngBoundsLiteral): boolean; extend(point: LatLng | LatLngLiteral): LatLngBounds; getCenter(): LatLng; getNorthEast(): LatLng; getSouthWest(): LatLng; intersects(other: LatLngBounds | LatLngBoundsLiteral): boolean; isEmpty(): boolean; toJSON(): LatLngBoundsLiteral; toSpan(): LatLng; toString(): string; toUrlValue(precision?: number): string; union(other: LatLngBounds | LatLngBoundsLiteral): LatLngBounds; static readonly MAX_BOUNDS: LatLngBounds; } export declare class LatLng { constructor(latOrLatLngOrLatLngLiteral: number | LatLngLiteral | LatLng, lngOrNoClampNoWrap?: number | boolean | null, noClampNoWrap?: boolean); equals(other: LatLng | null): boolean; lat(): number; lng(): number; toJSON(): LatLngLiteral; toString(): string; toUrlValue(precision?: number): string; } export interface PlaceGeometry { location?: LatLng; viewport?: LatLngBounds; } export interface PlaceOpeningHoursTime { day: number; hours: number; minutes: number; nextDate?: number; time: string; } export interface PlaceOpeningHoursPeriod { close?: PlaceOpeningHoursTime; open: PlaceOpeningHoursTime; } export interface PlaceOpeningHours { isOpen(date?: Date): boolean | undefined; open_now?: boolean; periods?: PlaceOpeningHoursPeriod[]; weekday_text?: string[]; } export interface PhotoOptions { maxHeight?: number | null; maxWidth?: number | null; } export interface PlacePhoto { getUrl(opts?: PhotoOptions): string; height: number; html_attributions: string[]; width: number; } export interface PlacePlusCode { compound_code?: string; global_code: string; } export interface PlaceAspectRating { rating: number; type: string; } export interface PlaceReview { aspects?: PlaceAspectRating[]; author_name: string; author_url?: string; language: string; profile_photo_url: string; rating?: number; relative_time_description: string; text: string; time: number; } export interface AddressGoogle { address_components?: GeocoderAddressComponent[]; adr_address?: string; aspects?: PlaceAspectRating[]; business_status?: BusinessStatus; lat?: number; lng?: number; formatted_address?: string; formatted_phone_number?: string; geometry?: PlaceGeometry; html_attributions?: string[]; icon?: string; icon_background_color?: string; icon_mask_base_uri?: string; international_phone_number?: string; name?: string; opening_hours?: PlaceOpeningHours; permanently_closed?: boolean; photos?: PlacePhoto[]; place_id?: string; plus_code?: PlacePlusCode; price_level?: number; rating?: number; reviews?: PlaceReview[]; types?: string[]; url?: string; user_ratings_total?: number; utc_offset?: number; utc_offset_minutes?: number; vicinity?: string; website?: string; } export interface ComponentRestrictions { country: string | string[] | null; } export interface AutocompleteOptions { bounds?: LatLngBounds | LatLngBoundsLiteral; componentRestrictions?: ComponentRestrictions; fields?: string[]; placeIdOnly?: boolean; strictBounds?: boolean; types?: string[]; } export interface PlaceResult { address_components?: GeocoderAddressComponent[]; adr_address?: string; aspects?: PlaceAspectRating[]; business_status?: BusinessStatus; formatted_address?: string; formatted_phone_number?: string; geometry?: PlaceGeometry; html_attributions?: string[]; icon?: string; icon_background_color?: string; icon_mask_base_uri?: string; international_phone_number?: string; name?: string; opening_hours?: PlaceOpeningHours; permanently_closed?: boolean; photos?: PlacePhoto[]; place_id?: string; plus_code?: PlacePlusCode; price_level?: number; rating?: number; reviews?: PlaceReview[]; types?: string[]; url?: string; user_ratings_total?: number; utc_offset?: number; utc_offset_minutes?: number; vicinity?: string; website?: string; } export interface MapsEventListener { remove(): void; } export declare class MVCObject { addListener(eventName: string, handler: () => void): MapsEventListener; bindTo(key: string, target: MVCObject, targetKey?: string | null, noNotify?: boolean): void; get(key: string): any; notify(key: string): void; set(key: string, value: any): void; setValues(values?: object | null): void; unbind(key: string): void; unbindAll(): void; } export declare class Autocomplete extends MVCObject { constructor(inputField: HTMLInputElement, opts?: AutocompleteOptions | null); getBounds(): LatLngBounds | undefined; getFields(): string[] | undefined; getPlace(): PlaceResult; setBounds(bounds: LatLngBounds | LatLngBoundsLiteral | undefined): void; setComponentRestrictions(restrictions: ComponentRestrictions | null): void; setFields(fields: string[] | undefined): void; setOptions(options: AutocompleteOptions | null): void; setTypes(types: string[] | null): void; } export interface AutocompleteGoogle extends Autocomplete { }