type TrpcClient = { navigation: { header: { queryOptions: () => unknown }; }; }; export function headerQuery(client: TrpcClient) { return client.navigation.header.queryOptions(); }