export interface ShopifyLifecycleRuntime {
    scan(root?: HTMLElement | null): void;
    observe(root?: HTMLElement | null): void;
    unobserve(root?: HTMLElement | null): void;
}
export interface ShopifyLifecyclePorts {
    resolveRoot(event: Event): HTMLElement | null;
}
export declare function resolveLifecycleRoot(event: Event): HTMLElement | null;
export declare function connectShopifyLifecycle(runtime: ShopifyLifecycleRuntime, ports?: Partial<ShopifyLifecyclePorts>): () => void;
