import { type SupportTicket } from '../../generated/global-types'; /** * Drives the ticket list query for both the consumer ("my tickets") surface and * the admin triage surface. * * `adminView` is the authoritative switch: * - `false` (default — consumer routes): query `mySupportTickets`, which the * backend pins to the calling actor (`payload.sub`). This is the privacy * boundary — a user only ever sees tickets they created, even when the user * is a @burdenoff.com platform admin (the `supportTickets` query widens for * those accounts and would otherwise leak every user's tickets here). * - `true` (admin routes): query `supportTickets`, the cross-user/admin read. * * In consumer mode, search runs locally over the loaded self-scoped tickets * rather than calling the server `searchTickets` resolver, which applies the * same platform-admin widening and would re-introduce the leak. */ export declare function useTicketListOperations(adminView?: boolean): { tickets: SupportTicket[]; ticketsLoading: boolean; ticketsError: import("@apollo/client").ErrorLike | undefined; totalTickets: any; hasMoreTickets: boolean; isScopedLocalSearch: boolean; isMissingProductScope: boolean; loadMoreTickets: () => void; refetchTickets: (variables?: any) => Promise<{ data: any; error?: import("@apollo/client").ErrorLike; }>; };