/** A hosted project supplied by the host's authenticated API client. */ export interface HostedProject { id: string; name: string; organizationSlug?: string; region?: string; url: string; createdAt?: string; status: 'active' | 'inactive' | 'pending'; } /** * Resolve a project by ID or an unambiguous name, including organization/name. * @param query Project ID, name, or organization/name. * @param projects Projects supplied by the host. * @returns The matching project without changing host state. * @throws {Error} When no project matches or its name is ambiguous. */ export declare const resolveProject: (query: string, projects: readonly HostedProject[]) => HostedProject; /** * Require a provisioned backend before generating application configuration. * @param project Project supplied by the host. * @returns Its provisioned backend URL. * @throws {Error} When the backend is unavailable or its URL is invalid. */ export declare const requireProjectBackendURL: (project: HostedProject) => string; /** Project listing data. The host owns fetching and selection persistence. */ export interface ProjectListResult { projects: HostedProject[]; selectedProject?: string | null; } /** * Describe the host's available projects and current selection. * @param projects Projects supplied by the host's API client. * @param selectedProject Current selected project ID, if any. * @returns A project listing without network or credential-store access. */ export declare const listProjects: (projects: readonly HostedProject[], selectedProject?: string | null) => ProjectListResult; /** * Select a project without persisting the selection. * @param query Project ID, name, or organization/name. * @param projects Projects supplied by the host's API client. * @returns The resolved project and its ID for the host to persist. * @throws {Error} When no project matches or its name is ambiguous. */ export declare const selectProject: (query: string, projects: readonly HostedProject[]) => { project: HostedProject; selectedProject: string; };