oidc-client
Version:
OpenID Connect (OIDC) & OAuth2 client library
48 lines (47 loc) • 1.73 kB
TypeScript
/// <reference types="node" />
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { Path, PathFragment } from '@angular-devkit/core';
import { Action } from './action';
import { DirEntry, FileEntry, FileVisitor, MergeStrategy, Tree, UpdateRecorder } from './interface';
declare class ScopedDirEntry implements DirEntry {
private _base;
readonly scope: Path;
constructor(_base: DirEntry, scope: Path);
readonly parent: DirEntry | null;
readonly path: Path;
readonly subdirs: PathFragment[];
readonly subfiles: PathFragment[];
dir(name: PathFragment): DirEntry;
file(name: PathFragment): FileEntry | null;
visit(visitor: FileVisitor): void;
}
export declare class ScopedTree implements Tree {
private _base;
readonly _root: ScopedDirEntry;
constructor(_base: Tree, scope: string);
readonly root: DirEntry;
branch(): Tree;
merge(other: Tree, strategy?: MergeStrategy): void;
read(path: string): Buffer | null;
exists(path: string): boolean;
get(path: string): FileEntry | null;
getDir(path: string): DirEntry;
visit(visitor: FileVisitor): void;
overwrite(path: string, content: Buffer | string): void;
beginUpdate(path: string): UpdateRecorder;
commitUpdate(record: UpdateRecorder): void;
create(path: string, content: Buffer | string): void;
delete(path: string): void;
rename(from: string, to: string): void;
apply(action: Action, strategy?: MergeStrategy): void;
readonly actions: Action[];
private _fullPath;
private _fullPathAction;
}
export {};