/**
 * Generic hook for fetching drawer artifact data when a feature ID changes.
 * Handles loading state, cancellation on unmount/re-fetch, and error toasting.
 *
 * @param featureId - The feature ID to fetch for, or null to reset.
 * @param fetcher - Async function that fetches the artifact data.
 * @param onSuccess - Called with the fetch result when successful and not cancelled.
 * @param onReset - Called immediately when featureId changes (before fetching).
 * @param errorMessage - Optional toast message shown on fetch failure.
 * @param refreshKey - Optional key that forces a re-fetch when it changes (even if featureId is the same).
 * @returns Whether the fetch is currently in progress.
 */
export declare function useArtifactFetch<TResult>(featureId: string | null, fetcher: (id: string) => Promise<TResult>, onSuccess: (result: TResult) => void, onReset: () => void, errorMessage?: string, refreshKey?: number): boolean;
//# sourceMappingURL=use-artifact-fetch.d.ts.map