I've seen in typescript declaration files people write decelerations like so:
export function useTheme(): ITheme;
But I was under the impression that the declare keyword was necessary for writing type decelerations for functions that are defined elsewhere?
If this is valid, and so is export declare function useTheme(): ITheme;, then is there any reason to choose one or the other?