import type { CommonLogger } from "./interfaces.js"; import { type ApeContext } from "./interfaces.portal.js"; import type { FileSystemPort } from "./ports.js"; /** * Local-specific configuration that is provided to the React app * * IMPORTANT: This must be kept in sync with the LocalEditorConfig interface * in packages/editor/src/utils/local-config.ts */ export interface LocalEditorConfig { defaultPath: string; apeContext: ApeContext; } /** * Human-readable names shown in the portal's account and environment chrome. * * The preview Worker overrides these so a hosted preview identifies itself as * one — with its branch and commit — instead of claiming to be somebody's local * machine. That reuses UI the portal already renders, so nothing preview-only * has to exist in the frontend. */ export interface LocalEditorLabels { account?: string; environment?: string; } export declare function getLocalEditorConfig({ deploymentUrl, fs, logger, labels, }: { deploymentUrl: string; fs: FileSystemPort; logger: CommonLogger; labels?: LocalEditorLabels; }): Promise;