import type { BuildTarget } from "@fabric-harness/node"; export type DeployTarget = BuildTarget; export interface DeployContext { outDir: string; manifest: unknown; flags: { preview: boolean; profile?: string | undefined; envFiles: string[]; envName?: string | undefined; /** Deploy this already-built artifact without rebuilding it. */ artifactDir?: string | undefined; }; logger: { log: (...args: unknown[]) => void; warn: (...args: unknown[]) => void; error: (...args: unknown[]) => void; }; } export interface DeployDriver { readonly name: string; preview(ctx: DeployContext): Promise; deploy(ctx: DeployContext): Promise; } export declare class DeployRegistry { private readonly drivers; register(target: DeployTarget, driver: DeployDriver): void; get(target: DeployTarget): DeployDriver | undefined; list(): DeployTarget[]; } export declare function createDefaultDeployRegistry(): DeployRegistry; /** * Serialize Model Serving and AI Gateway mutations around endpoint readiness. * Databricks rejects a configuration update while the preceding update is * still converging, including when a retry starts in a new CLI process. */ export declare function serializeDatabricksServingUpdate(options: { exists: boolean; waitForEndpoint: () => Promise; updateEndpoint: () => Promise; createEndpoint: () => Promise; updateAiGateway?: (() => Promise) | undefined; }): Promise; /** * Resolve the workspace host for a typed Databricks serving deployment: * `DATABRICKS_HOST` wins outright; otherwise a CLI profile (`--profile` or * `DATABRICKS_CONFIG_PROFILE`) resolves the host via * `databricksHostFromCliProfile`. That helper is only present on newer * `@fabric-harness/databricks` releases (the package is an optional peer * pinned to `>=5.0.0`), so an older install is reported clearly rather than * crashing with "not a function". */ export declare function resolveDatabricksServingDeployHost(options: { profileFlag?: string; env: Record; databricksHostFromCliProfile?: (profile?: string) => Promise; }): Promise; //# sourceMappingURL=targets.d.ts.map