/**
 * @license
 * Copyright 2026 Amodal Labs, Inc.
 * SPDX-License-Identifier: MIT
 */
/**
 * Studio's Hono app factory + library entry. **Importing this module has
 * no side effects** — it just exposes `createStudioApp` and the named
 * hooks for embedders (cloud-studio, custom deployments, tests).
 *
 * The local-dev runner that binds a port + opens the PG LISTEN bridge
 * lives separately in `./bin.ts` so that nothing happens at import time.
 */
import { Hono } from 'hono';
export { setAuthProvider, getUser } from '../lib/auth.js';
export type { StudioAuth } from '../lib/auth.js';
export { setStudioCapabilityResolver } from '../lib/capabilities.js';
export type { StudioCapabilityResolver } from '../lib/capabilities.js';
export { setBackendFactory, getBackend, resetBackend } from '../lib/startup.js';
export type { BackendFactory } from '../lib/startup.js';
export type { StudioBackend } from '../lib/backend.js';
export { DrizzleStudioBackend } from '../lib/drizzle-backend.js';
export type { DrizzleStudioBackendOptions } from '../lib/drizzle-backend.js';
export { StudioError, StudioPublishError, StudioStorageError, StudioPathError, StudioFeatureUnavailableError } from '../lib/errors.js';
export type { StudioUser, DraftFile, PublishResult, PreviewResult, WorkspaceFile, WorkspaceBundle, BatchChange, BatchChangeAction, BatchRequest, BatchResponse } from '../lib/types.js';
export type { StudioDeploy, StudioDeployListResponse, ChangeProposal } from '../lib/types.js';
export { logger } from '../lib/logger.js';
export { setRuntimeResolver } from '../lib/runtime-client.js';
export type { RuntimeResolver, ResolvedRuntime } from '../lib/runtime-client.js';
export { setPreviewHandler } from './routes/preview.js';
export type { PreviewHandler } from './routes/preview.js';
export { setStudioDbProvider } from '../lib/db.js';
export { disableEventBridge } from '../lib/event-bridge.js';
export { getDeployBackend, setDeployBackend } from '../lib/deploy-backend.js';
export type { DeployBackend } from '../lib/deploy-backend.js';
export { getChangeProposalBackend, setChangeProposalBackend } from '../lib/change-proposal-backend.js';
export type { ChangeProposalBackend, CreateChangeProposalInput, CommitProposalChangesInput, DeploySourceInput } from '../lib/change-proposal-backend.js';
export interface CreateStudioAppOptions {
    /** Whether to serve the Vite SPA static files. Defaults to true. */
    serveStaticFiles?: boolean;
}
/**
 * Create the Studio Hono app with all middleware and routes mounted.
 * Does NOT start a server — the caller is responsible for that.
 *
 * Used by:
 * - The bin runner in `./bin.ts` for local dev (`amodal studio` / `amodal dev`)
 * - Cloud deployments that need the Hono app as a serverless handler
 */
export declare function createStudioApp(options?: CreateStudioAppOptions): Hono;
