import type { AxiosResponse, Method } from 'axios'; import { IncomingMessage } from 'http'; import type { Resource } from './util'; type RetryOptions = { retries?: number; factor?: number; randomize?: boolean; minTimeout?: number; maxTimeout?: number; onFailedAttempt?: (error: any) => void | Promise; }; declare const getComponentWebEndpoint: (keyword: string) => string; type CallComponentOptions = { name?: string; method?: Method; path: string; data?: D; params?: P; headers?: { [key: string]: any; }; timeout?: number; }; type CallComponent = { (options: CallComponentOptions & { responseType: 'stream'; }, retryOptions?: RetryOptions): Promise>; (options: CallComponentOptions, retryOptions?: RetryOptions): Promise>; }; declare const call: CallComponent; declare const getComponentMountPoint: (keyword: string) => string; declare const getUrl: (...parts: string[]) => string; declare const getRelativeUrl: (...parts: string[]) => string; declare const getResourceExportDir: ({ projectId, releaseId }?: { projectId: string; releaseId?: string; }) => string; declare const getReleaseExportDir: ({ projectId, releaseId }: { projectId: string; releaseId?: string; }) => string; declare const getResources: ({ scope, types, skipRunningCheck, }?: { scope?: "all" | "pack" | "excludePack"; did?: string; types?: { did: string; type: string; }[]; skipRunningCheck?: boolean; }) => Resource[]; declare const getPackResources: ({ types, }?: { types?: { did: string; type: string; }[]; }) => Resource[]; declare const waitForComponentRunning: (name: string, timeout?: number, interval?: number) => Promise; export { call }; export { getUrl }; export { getRelativeUrl }; export { getComponentMountPoint }; export { getComponentWebEndpoint }; export { waitForComponentRunning }; export { getResourceExportDir }; export { getReleaseExportDir }; export { getResources }; export { getPackResources }; declare const _default: { call: CallComponent; getUrl: (...parts: string[]) => string; getRelativeUrl: (...parts: string[]) => string; getComponentMountPoint: (keyword: string) => string; getComponentWebEndpoint: (keyword: string) => string; waitForComponentRunning: (name: string, timeout?: number, interval?: number) => Promise; getResourceExportDir: ({ projectId, releaseId }?: { projectId: string; releaseId?: string; }) => string; getReleaseExportDir: ({ projectId, releaseId }: { projectId: string; releaseId?: string; }) => string; getResources: ({ scope, types, skipRunningCheck, }?: { scope?: "all" | "pack" | "excludePack"; did?: string; types?: { did: string; type: string; }[]; skipRunningCheck?: boolean; }) => Resource[]; getPackResources: ({ types, }?: { types?: { did: string; type: string; }[]; }) => Resource[]; }; export default _default;