createWithClient<Client>(getClient: () => Promise<Client | null>): unknown
Create a withClient helper that runs an operation with a lazily-resolved client. Returns null if the client is not available or the operation fails.
getClient: () => Promise<Client | null>