import { BaseResource } from './BaseResource.js'; import type { RequestOptions } from '../types/common.js'; import type { Funnel, FunnelCreateParams, FunnelUpdateParams, FunnelPromoteParams, FunnelPromoteResult, FunnelPreviewSessionParams, FunnelSession } from '../types/funnels.js'; export declare class Funnels extends BaseResource { /** * List all funnels for a store. */ list(storeId: string, opts?: RequestOptions): Promise<{ funnels: Funnel[]; }>; /** * Retrieve a funnel by ID. */ retrieve(funnelId: string, opts?: RequestOptions): Promise; /** * Create a new funnel with step configuration. */ create(params: FunnelCreateParams, opts?: RequestOptions): Promise; /** * Update a funnel and its routing configuration. */ update(funnelId: string, params: FunnelUpdateParams, opts?: RequestOptions): Promise; /** * Delete a funnel and clean up its routes. */ del(funnelId: string, storeId: string, opts?: RequestOptions): Promise<{ success: boolean; routesRemoved: number; }>; /** * Promote the staging configuration to production on a custom domain. * The server handles instance cloning, route setup, and prebuilds. */ promote(funnelId: string, params: FunnelPromoteParams, opts?: RequestOptions): Promise; /** * Create a preview session for testing a funnel step in the builder. */ createPreviewSession(funnelId: string, params: FunnelPreviewSessionParams, opts?: RequestOptions): Promise; /** * Retrieve a funnel session's data. */ retrieveSession(sessionId: string, opts?: RequestOptions): Promise; } //# sourceMappingURL=Funnels.d.ts.map