import type { Api, Connection } from "@cargo-ai/api"; export type WriteOutcome = { root: string; file: string; fileOutcome: "written" | "unchanged"; stateId: string; }; export type WriteInput = { api: Api; root: string; workspaceUuid: string; connector: Connection.Connector; overwrite: boolean; interactive: boolean; /** * Failures become `undefined` or a warning instead of `process.exit`. * `init` uses this so a bind error cannot take down a finished scaffold. */ soft?: boolean; }; export declare function writeConnectorFile(input: WriteInput): Promise; export type FilePlan = "write" | "unchanged" | "conflict"; /** * Decide what to do with `connectors/.ts`. Trailing whitespace is * normalized so a formatter run does not read as a conflict. * * Exported for tests; `writeConnectorFile` is the only production caller. */ export declare function planConnectorFile(input: { existing: string | undefined; generated: string; overwrite: boolean; }): FilePlan; //# sourceMappingURL=connectorFile.d.ts.map