export declare function checkWorkingTree({ cwd }?: { cwd?: string | URL; }): Promise; export declare function throwIfReleased({ refCount }: { refCount: any; }): void; export declare function mkThrowIfUncommitted(options?: {}): (opts: { isDirty?: boolean; }) => Promise | undefined; export declare const throwIfUncommitted: (opts: { isDirty?: boolean; }) => Promise | undefined;