export declare function code2Snippet(path: string): Promise;