export interface IncrementByFunc { (amount: number): string; } export interface IncrementFunc extends IncrementByFunc { (): string; by: IncrementByFunc; } export interface IncIdProps { id: string; length: number; prefix?: string; } /** * Auto-incrementing Ids used in cases where the outcomes need to be deterministic i.e. hydration */ export default function useIncId(props?: IncIdProps | string): () => string;