import URI from '@theia/core/lib/common/uri';
import { MaybePromise } from '@theia/core';
import { WorkspaceFileService } from './workspace-file-service';
export declare class UntitledWorkspaceService {
    protected readonly workspaceFileService: WorkspaceFileService;
    /**
     * Check if a URI is an untitled workspace.
     * @param candidate The URI to check
     * @param configDirUri Optional config directory URI. If provided, also verifies
     *                     that the candidate is under the expected workspaces directory.
     *                     This is the secure check and should be used when possible.
     */
    isUntitledWorkspace(candidate?: URI, configDirUri?: URI): boolean;
    getUntitledWorkspaceUri(configDirUri: URI, isAcceptable: (candidate: URI) => MaybePromise<boolean>, warnOnHits?: () => unknown): Promise<URI>;
}
//# sourceMappingURL=untitled-workspace-service.d.ts.map