export declare function lock(resources: string): Promise<() => void>;