import { DeploymentFile } from './hashes'; import { FetchOptions } from '@zeit/fetch'; import ignore from 'ignore'; declare type Ignore = ReturnType; import { NowClientOptions, DeploymentOptions, NowConfig } from '../types'; export declare const API_FILES = "/v2/now/files"; declare const EVENTS_ARRAY: readonly ["hashes-calculated", "file-count", "file-uploaded", "all-files-uploaded", "created", "building", "ready", "alias-assigned", "warning", "error", "notice", "tip", "canceled"]; export declare type DeploymentEventType = typeof EVENTS_ARRAY[number]; export declare const EVENTS: Set<"warning" | "error" | "hashes-calculated" | "file-count" | "file-uploaded" | "all-files-uploaded" | "created" | "building" | "ready" | "alias-assigned" | "notice" | "tip" | "canceled">; export declare function getApiDeploymentsUrl(metadata?: Pick): "/v10/now/deployments" | "/v13/now/deployments"; export declare function parseVercelConfig(filePath?: string): Promise; export declare function buildFileTree(path: string | string[], isDirectory: boolean, debug: Debug): Promise<{ fileList: string[]; ignoreList: string[]; }>; export declare function getVercelIgnore(cwd: string | string[]): Promise<{ ig: Ignore; ignores: string[]; }>; interface FetchOpts extends FetchOptions { apiUrl?: string; method?: string; teamId?: string; headers?: { [key: string]: any; }; userAgent?: string; } export declare const fetch: (url: string, token: string, opts?: FetchOpts, debugEnabled?: boolean | undefined, useNodeFetch?: boolean | undefined) => Promise; export interface PreparedFile { file: string; sha: string; size: number; mode: number; } export declare const prepareFiles: (files: Map, clientOptions: NowClientOptions) => PreparedFile[]; export declare function createDebug(debug?: boolean): (...logs: string[]) => void; declare type Debug = ReturnType; export {};