# GENERATED CODE - DO NOT MODIFY
from __future__ import annotations
import chitose
import typing

def get_checkout(service: str, headers: dict[str, str], did: str, commit: typing.Optional[str]=None):
    """Gets the repo state."""
    return chitose.xrpc.call('com.atproto.sync.getCheckout', [('did', did), ('commit', commit)], None, service, {} | headers)