export declare function useRematch(): { game: { id: string; canRematch: boolean; rematch?: { id: string; players: { id: any; userId: string; ready: boolean; name?: string; }[]; startDate?: Date; }; } | undefined; rematch: () => Promise<{ id: string; canRematch: boolean; rematch?: { id: string; players: { id: any; userId: string; ready: boolean; name?: string; }[]; startDate?: Date; }; } | import("@tanstack/query-core").QueryObserverResult<{ id: string; canRematch: boolean; rematch?: { id: string; players: { id: any; userId: string; ready: boolean; name?: string; }[]; startDate?: Date; }; }, import("@trpc/client").TRPCClientErrorLike<{ input: string; output: { id: string; canRematch: boolean; rematch?: { id: string; players: { id: any; userId: string; ready: boolean; name?: string; }[]; startDate?: Date; }; }; transformer: true; errorShape: import("@trpc/server").TRPCDefaultErrorShape; }>>>; };