import type { Place, Point, Zone } from "../types/interface"; export declare const sleep: (milliSeconds: number) => Promise; export declare function assertPoint(point: unknown): asserts point is Point; export declare function assertAngle(angle: unknown): asserts angle is number | undefined; export declare function assertZone(zone: any): asserts zone is Zone; export declare function assertNotEmptyArray(value: T[] | undefined, name: string): asserts value is T[]; export declare const isLatLngLiteral: (value: any) => boolean; export declare const isPlacesInclude: (places: Place[], place: Place) => boolean; interface Defered extends Promise { state: "pending" | "fulfilled" | "rejected"; resolve: (value: T | PromiseLike) => void; reject: (reason?: any) => void; } export declare function defered(): Defered; export declare const resettableSleep: (milliSeconds: number) => { sleepPromise: Defered; reset: () => void; }; export declare const pausableSleep: (milliSeconds: number) => { sleepPromise: Defered; pause: () => void; restart: () => void; }; export declare const createRunOnce:

(fn: (...args: P) => R) => (...args: P) => R; export declare const createOneConcurrent:

(fn: (...args: P) => Promise) => (...args: P) => Promise | undefined; export declare const createReadOnce: (value: T) => () => T | undefined; export declare const createAsyncNoFailNonNullable:

(fn: (...args: P) => Promise, defaultValue: NonNullable) => (...args: P) => Promise>; export declare const pipeTimeout:

(fn: (...args: P) => Promise, defaultValue: R, timeout: number) => (...args: P) => Promise; export declare const retryUntilSuccess:

(fn: (...args: P) => Promise) => (...args: P) => Promise; export declare const equalAssign: (base: T, target: T) => T; export declare const assertAssingedBeforeUsed: () => never; type PickFunctionalPropertyName = K extends any ? T[K] extends (...args: any) => any ? K : never : never; type PickFunctionalProperty = Pick>; export declare const proxyFunctionalProperty: (target: T) => PickFunctionalProperty; export declare const createAbortable: (signal?: AbortSignal) => Promise) | undefined>(fn: F) => F; export type AbortSignalOption = { signal?: AbortSignal; }; type AbortableOneConcurrentCreator Promise> = (signal: AbortSignal) => F; export declare const createAbortableOneConcurrent: Promise>(creator: AbortableOneConcurrentCreator, opt?: { silent?: boolean; }) => { fn: F; abort: () => void; }; export declare const AbortSignalAny: (signals: (AbortSignal | undefined)[]) => AbortSignal; export declare const guid: () => string; /** * 判断两个小数是否相等,以短的小数位数为准 * @param {string|number} num1 * @param {string|number} num2 * @returns boolean */ export declare const isDecimalEqualByShort: (num1: string | number, num2: string | number) => boolean; export {};