<commit_before>declare module 'part:*'
declare module 'all:part:*'

declare module 'part:@sanity/base/router' {
  export * from '@sanity/state-router'

  interface StateLinkProps {
    state?: Record<string, any>
    toIndex?: boolean
  }

  type IntentParameters = Record<string, any> | [Record<string, any>, Record<string, any>]

  type RouterState = Record<string, any>

  export type Router<S = Record<any, any>> = {
    navigate: (nextState: Record<string, any>, options?: NavigateOptions) => void
    navigateIntent: (
      intentName: string,
      params?: IntentParameters,
      options?: NavigateOptions
    ) => void
    state: S
  }

  export const StateLink: PureComponent<StateLinkProps>
}
<commit_msg>[desk-tool] Add missing useRouter function to parts typings<commit_after>declare module 'part:*'
declare module 'all:part:*'

declare module 'part:@sanity/base/router' {
  export * from '@sanity/state-router'

  interface StateLinkProps {
    state?: Record<string, any>
    toIndex?: boolean
  }

  type IntentParameters = Record<string, any> | [Record<string, any>, Record<string, any>]

  type RouterState = Record<string, any>

  export type Router<S = Record<any, any>> = {
    navigate: (nextState: Record<string, any>, options?: NavigateOptions) => void
    navigateIntent: (
      intentName: string,
      params?: IntentParameters,
      options?: NavigateOptions
    ) => void
    state: S
  }

  export const useRouter: () => Router
  export const StateLink: PureComponent<StateLinkProps>
}

{'fraction_non_alphanumeric': 0.12360289283366206, 'fraction_numerical': 0.0, 'mean_word_length': 4.090301003344481, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 26, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3826283', 'n_tokens_mistral': 472, 'n_tokens_neox': 454, 'n_words': 125}