import type { Company } from '../stores/company-safeguard'; type UseLoadAllWellsCompanySafeguardOptions = { companies: Company[]; canViewCompanies: boolean; canViewCompaniesLoading: boolean; }; type UseLoadAllWellsCompanySafeguardResult = { isSafeguardReady: boolean; safeguardAppliedCompanyId: number[] | null; targetCompanyId: number[] | null; resetSafeguard: () => void; }; /** * Applies a company filter safeguard when "Load All Wells" mode is enabled. * * When no company filter is set (`companyId === undefined`), this hook automatically * sets the company filter to prevent loading excessive data. It prioritizes the * subject well's company, falling back to the first company alphabetically. * * Company filter semantics: * - `undefined` (not in filters): Clean start — safeguard fires * - `[]` (empty array): User explicitly chose "All companies" — safeguard skips * - `[id]` (specific company): Specific selection — safeguard skips * * Returns `isSafeguardReady` which indicates whether it's safe to proceed with * loading wells (either safeguard was applied or it's not needed). * * Returns `targetCompanyId` which is the always-computed default company for * the safeguard, used by Filter.tsx for "To Defaults" comparison. */ export declare const useLoadAllWellsCompanySafeguard: ({ companies, canViewCompanies, canViewCompaniesLoading, }: UseLoadAllWellsCompanySafeguardOptions) => UseLoadAllWellsCompanySafeguardResult; export {}; //# sourceMappingURL=useLoadAllWellsCompanySafeguard.d.ts.map