import type { Component, Page } from "../pageModel";
import type { IndicatorData } from "../tree-indicators/types";
export declare function collectSharedDatasourceIds(component: Component | undefined, ids?: Set<string>): Set<string>;
/**
 * Publish-state lookup for the shared datasources on a page.
 *
 * Fetches the "published" tree indicator for each shared component's
 * datasource item and refreshes when a publish job finishes or a shared
 * datasource is edited.
 */
export declare function useSharedComponentPublishState(page: Page | undefined, language: string | undefined): (datasourceItemId: string | undefined) => IndicatorData | undefined;
