import { useSources } from '../../providers/sources/store';
type SourceWidget = ReturnType<typeof useSources>[0]['widgets'];
type WidgetModelResult = SourceWidget | null;
interface SingleSourceWidgetArgs {
    accessToken: string;
    sourceId: string;
    sourcesId?: never;
}
interface MultiSourceWidgetArgs {
    accessToken: string;
    sourceId?: never;
    sourcesId: string[];
}
/**
 * Resolves the CARTO widget model for one or more data sources, configuring the access token for API communication.
 *
 * @remarks
 * Supports two calling patterns: positional arguments `useWidgetModel(accessToken, sourceId)` and an object argument
 * `useWidgetModel({ accessToken, sourceId })`. When a single `sourceId` is provided, returns a single widget model (or null).
 * When `sourcesId` (array) is provided, returns an array of widget models.
 */
export declare function useWidgetModel(accessToken: string, sourceId: string): WidgetModelResult;
export declare function useWidgetModel(accessToken: string, sourcesId: string[]): WidgetModelResult[];
export declare function useWidgetModel(args: SingleSourceWidgetArgs): WidgetModelResult;
export declare function useWidgetModel(args: MultiSourceWidgetArgs): WidgetModelResult[];
export {};
