import { Builder, BuilderFunctions } from '@vercel/build-utils'; import { NowHeader, Route, NowRedirect, NowRewrite } from '@vercel/routing-utils'; export { DeploymentEventType } from './utils'; export interface Dictionary { [key: string]: T; } /** * Options for `now-client` or * properties that should not * be part of the payload. */ export interface NowClientOptions { token: string; path: string | string[]; debug?: boolean; teamId?: string; apiUrl?: string; force?: boolean; withCache?: boolean; userAgent?: string; defaultName?: string; isDirectory?: boolean; skipAutoDetectionConfirmation?: boolean; } export interface Deployment { id: string; deploymentId?: string; url: string; name: string; meta: Dictionary; version: 2; regions: string[]; routes: Route[]; builds?: Builder[]; functions?: BuilderFunctions; plan: string; public: boolean; ownerId: string; readyState: 'INITIALIZING' | 'ANALYZING' | 'BUILDING' | 'DEPLOYING' | 'READY' | 'ERROR'; state?: 'INITIALIZING' | 'ANALYZING' | 'BUILDING' | 'DEPLOYING' | 'READY' | 'ERROR'; createdAt: string; createdIn: string; env: Dictionary; build: { env: Dictionary; }; target: string; alias: string[]; aliasAssigned: boolean; aliasError: string | null; } export interface DeploymentBuild { id: string; use: string; createdIn: string; deployedTo: string; readyState: 'INITIALIZING' | 'ANALYZING' | 'BUILDING' | 'DEPLOYING' | 'READY' | 'ERROR'; state?: 'INITIALIZING' | 'ANALYZING' | 'BUILDING' | 'DEPLOYING' | 'READY' | 'ERROR'; readyStateAt: string; path: string; } export interface DeploymentGithubData { enabled: boolean; autoAlias: boolean; silent: boolean; autoJobCancelation: boolean; } export declare const fileNameSymbol: unique symbol; export interface NowConfig { [fileNameSymbol]?: string; name?: string; version?: number; public?: boolean; env?: Dictionary; build?: { env?: Dictionary; }; builds?: Builder[]; routes?: Route[]; files?: string[]; cleanUrls?: boolean; rewrites?: NowRewrite[]; redirects?: NowRedirect[]; headers?: NowHeader[]; trailingSlash?: boolean; functions?: BuilderFunctions; github?: DeploymentGithubData; scope?: string; alias?: string | string[]; regions?: string[]; projectSettings?: { devCommand?: string | null; buildCommand?: string | null; outputDirectory?: string | null; framework?: string | null; }; } /** * Options that will be sent to the API. */ export interface DeploymentOptions { version?: number; regions?: string[]; routes?: Route[]; cleanUrls?: boolean; rewrites?: NowRewrite[]; redirects?: NowRedirect[]; headers?: NowHeader[]; trailingSlash?: boolean; builds?: Builder[]; functions?: BuilderFunctions; env?: Dictionary; build?: { env?: Dictionary; }; source?: string; target?: string; name?: string; public?: boolean; meta?: Dictionary; projectSettings?: { devCommand?: string | null; buildCommand?: string | null; outputDirectory?: string | null; }; }